mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-10-29 06:57:40 +03:00
Cast to UINT32 before shifting bits
This commit is contained in:
parent
6b4bb79b44
commit
1d4cda65cf
|
|
@ -22,7 +22,8 @@
|
||||||
|
|
||||||
static void
|
static void
|
||||||
read4B(UINT32 *dest, UINT8 *buf) {
|
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];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user