Add ifdef around 32 bit length limit check in SlSetLength

This commit is contained in:
Jonathan G Rennison
2021-10-29 20:27:41 +01:00
parent 1d89fe3820
commit 6ba53a9a68

View File

@@ -796,7 +796,9 @@ void SlSetLength(size_t length)
* *
* If we have more than 28 bits, use an extra uint32 and * If we have more than 28 bits, use an extra uint32 and
* signal this using the extended chunk header */ * signal this using the extended chunk header */
#ifdef _SQ64
assert(length < (1LL << 32)); assert(length < (1LL << 32));
#endif
if (length >= (1 << 28)) { if (length >= (1 << 28)) {
/* write out extended chunk header */ /* write out extended chunk header */
SlWriteByte(CH_EXT_HDR); SlWriteByte(CH_EXT_HDR);