From: Eric Biggers Date: Sun, 3 Mar 2013 22:59:52 +0000 (-0600) Subject: update_lte_of_staging_file(): Use BUILD_BUG_ON X-Git-Tag: v1.2.6~12 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=cdf7299e77148206b8a4cb665ddd7a00a0e8ed91 update_lte_of_staging_file(): Use BUILD_BUG_ON --- diff --git a/src/mount_image.c b/src/mount_image.c index 7006c7e4..af392461 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -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 { - wimlib_assert(<e->file_on_disk == <e->staging_file_name); + BUILD_BUG_ON(<e->file_on_disk != <e->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;