gas signed overflow fixes
[deliverable/binutils-gdb.git] / gas / config / tc-aarch64.c
index cd4601682beb4e03a943029a50c60fe8546680ba..8879451440057396cc51a50742ed0beb378f7aca 100644 (file)
@@ -5024,7 +5024,8 @@ get_aarch64_insn (char *buf)
 {
   unsigned char *where = (unsigned char *) buf;
   uint32_t result;
-  result = (where[0] | (where[1] << 8) | (where[2] << 16) | (where[3] << 24));
+  result = ((where[0] | (where[1] << 8) | (where[2] << 16)
+            | ((uint32_t) where[3] << 24)));
   return result;
 }
 
This page took 0.041514 seconds and 4 git commands to generate.