]> wimlib.net Git - wimlib/commitdiff
update_lte_of_staging_file(): Use BUILD_BUG_ON
authorEric Biggers <ebiggers3@gmail.com>
Sun, 3 Mar 2013 22:59:52 +0000 (16:59 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 3 Mar 2013 22:59:52 +0000 (16:59 -0600)
src/mount_image.c

index 7006c7e4478cb2cce196732b344402e8c567eea8..af39246128e2fdffa04fe256c49bb6f507abbd03 100644 (file)
@@ -758,7 +758,7 @@ static int update_lte_of_staging_file(struct wim_lookup_table_entry *lte,
                        inode_update_lte_ptr(lte->lte_inode, lte, NULL);
                        free_lookup_table_entry(lte);
                } else {
                        inode_update_lte_ptr(lte->lte_inode, lte, NULL);
                        free_lookup_table_entry(lte);
                } else {
-                       wimlib_assert(&lte->file_on_disk == &lte->staging_file_name);
+                       BUILD_BUG_ON(&lte->file_on_disk != &lte->staging_file_name);
                        lte->resource_entry.original_size = stbuf.st_size;
                        lte->resource_entry.size = stbuf.st_size;
                        lte->resource_location = RESOURCE_IN_FILE_ON_DISK;
                        lte->resource_entry.original_size = stbuf.st_size;
                        lte->resource_entry.size = stbuf.st_size;
                        lte->resource_location = RESOURCE_IN_FILE_ON_DISK;