*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / dwarf2-frame.c
index 945d21647fd5bafc3880795c49d0371d4964a050..ef0d6266fd83179886f0bd21a584f06ec6a523e7 100644 (file)
@@ -1105,8 +1105,8 @@ read_signed_leb128 (bfd *abfd, gdb_byte *buf, unsigned int *bytes_read_ptr)
     }
   while (byte & 0x80);
 
-  if ((shift < 32) && (byte & 0x40))
-    result |= -(1 << shift);
+  if (shift < 8 * sizeof (result) && (byte & 0x40))
+    result |= -(((LONGEST)1) << shift);
 
   *bytes_read_ptr = num_read;
 
This page took 0.025109 seconds and 4 git commands to generate.