From cdf7299e77148206b8a4cb665ddd7a00a0e8ed91 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 3 Mar 2013 16:59:52 -0600 Subject: [PATCH] update_lte_of_staging_file(): Use BUILD_BUG_ON --- src/mount_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0