diff --git a/tools/descramble.c b/tools/descramble.c index 9d45b8c0dc..3d09bfad75 100644 --- a/tools/descramble.c +++ b/tools/descramble.c @@ -28,7 +28,7 @@ int iaudio_decode(char *iname, char *oname); unsigned int le2int(unsigned char* buf) { - int32_t res = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; + unsigned int res = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; return res; } diff --git a/tools/scramble.c b/tools/scramble.c index 555bf84291..9a64a5aeed 100644 --- a/tools/scramble.c +++ b/tools/scramble.c @@ -54,7 +54,7 @@ void short2le(unsigned short val, unsigned char* addr) unsigned int le2int(unsigned char* buf) { - int32_t res = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; + unsigned int res = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; return res; }