X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fdentry.c;h=13940a32d3b96c2a4c7d6f9a60babea8e3931ceb;hb=5ec910e4e9126a37eed1ff199d55a1952c76e0f7;hp=4f842eaa6a413d3588be38f1a58f85ef2600429c;hpb=d5975da32eacd99a3211b6158da2e487cb5a5713;p=wimlib diff --git a/src/dentry.c b/src/dentry.c index 4f842eaa..13940a32 100644 --- a/src/dentry.c +++ b/src/dentry.c @@ -1394,7 +1394,7 @@ read_dentry(const u8 * restrict buf, size_t buf_len, u64 calculated_size; int ret; - BUILD_BUG_ON(sizeof(struct wim_dentry_on_disk) != WIM_DENTRY_DISK_SIZE); + STATIC_ASSERT(sizeof(struct wim_dentry_on_disk) == WIM_DENTRY_DISK_SIZE); /* Before reading the whole dentry, we need to read just the length. * This is because a dentry of length 8 (that is, just the length field)