Fix some type conversion warnings

This commit is contained in:
Andreas Schmitt
2021-06-21 09:10:40 +02:00
parent f3b39b12a8
commit e1214a6d8b
7 changed files with 11 additions and 11 deletions

View File

@@ -800,9 +800,9 @@ void SlSetLength(size_t length)
SlWriteByte(CH_EXT_HDR);
SlWriteUint32(static_cast<uint32>(SLCEHF_BIG_RIFF));
}
SlWriteUint32((uint32)((length & 0xFFFFFF) | ((length >> 24) << 28)));
SlWriteUint32(static_cast<uint32>((length & 0xFFFFFF) | ((length >> 24) << 28)));
if (length >= (1 << 28)) {
SlWriteUint32(length >> 28);
SlWriteUint32(static_cast<uint32>(length >> 28));
}
break;
case CH_ARRAY: