diff options
-rw-r--r-- | tools/descramble.c | 2 | ||||
-rw-r--r-- | tools/scramble.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); | |||
28 | 28 | ||
29 | unsigned int le2int(unsigned char* buf) | 29 | unsigned int le2int(unsigned char* buf) |
30 | { | 30 | { |
31 | int32_t res = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; | 31 | unsigned int res = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; |
32 | 32 | ||
33 | return res; | 33 | return res; |
34 | } | 34 | } |
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) | |||
54 | 54 | ||
55 | unsigned int le2int(unsigned char* buf) | 55 | unsigned int le2int(unsigned char* buf) |
56 | { | 56 | { |
57 | int32_t res = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; | 57 | unsigned int res = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; |
58 | 58 | ||
59 | return res; | 59 | return res; |
60 | } | 60 | } |