From: Pavel P Date: Sun, 19 Jan 2025 00:37:35 +0000 (+0200) Subject: update sizeof check X-Git-Tag: v1.5.7^2~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcd684b9b45917dbb90e8122faf782e4028fdb42;p=thirdparty%2Fzstd.git update sizeof check --- diff --git a/lib/common/bitstream.h b/lib/common/bitstream.h index 582f9dd72..bc7118b37 100644 --- a/lib/common/bitstream.h +++ b/lib/common/bitstream.h @@ -165,7 +165,7 @@ FORCE_INLINE_TEMPLATE size_t BIT_getLowerBits(BitContainerType bitContainer, U32 # if (defined(__x86_64__) || defined(_M_X64)) && !defined(__ILP32__) return _bzhi_u64(bitContainer, nbBits); # else - DEBUG_STATIC_ASSERT(sizeof(size_t) == sizeof(U32)); + DEBUG_STATIC_ASSERT(sizeof(bitContainer) == sizeof(U32)); return _bzhi_u32(bitContainer, nbBits); # endif #else