Cast to UINT32 before shifting bits

This commit is contained in:
Andrew Murray 2025-09-12 16:27:38 +10:00
parent 6b4bb79b44
commit 1d4cda65cf

View File

@ -22,7 +22,8 @@
static void
read4B(UINT32 *dest, UINT8 *buf) {
*dest = (UINT32)((buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]);
*dest = ((UINT32)buf[0] << 24) | ((UINT32)buf[1] << 16) | ((UINT32)buf[2] << 8) |
buf[3];
}
/*