Module Name:    src
Committed By:   joerg
Date:           Sat Sep 12 19:04:21 UTC 2015

Modified Files:
        src/external/gpl3/gdb/dist/gdb: ada-lang.c

Log Message:
Don't shift negative values.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4 -r1.2 src/external/gpl3/gdb/dist/gdb/ada-lang.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/ada-lang.c
diff -u src/external/gpl3/gdb/dist/gdb/ada-lang.c:1.1.1.4 src/external/gpl3/gdb/dist/gdb/ada-lang.c:1.2
--- src/external/gpl3/gdb/dist/gdb/ada-lang.c:1.1.1.4	Sat Aug 15 09:52:05 2015
+++ src/external/gpl3/gdb/dist/gdb/ada-lang.c	Sat Sep 12 19:04:21 2015
@@ -2518,7 +2518,7 @@ ada_value_primitive_packed_val (struct v
       accumSize += HOST_CHAR_BIT - unusedLS;
       if (accumSize >= HOST_CHAR_BIT)
         {
-          unpacked[targ] = accum & ~(~0L << HOST_CHAR_BIT);
+          unpacked[targ] = accum & ~(~0UL << HOST_CHAR_BIT);
           accumSize -= HOST_CHAR_BIT;
           accum >>= HOST_CHAR_BIT;
           ntarg -= 1;
@@ -2532,7 +2532,7 @@ ada_value_primitive_packed_val (struct v
   while (ntarg > 0)
     {
       accum |= sign << accumSize;
-      unpacked[targ] = accum & ~(~0L << HOST_CHAR_BIT);
+      unpacked[targ] = accum & ~(~0UL << HOST_CHAR_BIT);
       accumSize -= HOST_CHAR_BIT;
       accum >>= HOST_CHAR_BIT;
       ntarg -= 1;

Reply via email to