Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist/gdb Don't shift negative values.
details: https://anonhg.NetBSD.org/src/rev/b7cdfa15621b
branches: trunk
changeset: 340551:b7cdfa15621b
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Sep 12 19:04:21 2015 +0000
description:
Don't shift negative values.
diffstat:
external/gpl3/gdb/dist/gdb/ada-lang.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r fa8c73fede1b -r b7cdfa15621b external/gpl3/gdb/dist/gdb/ada-lang.c
--- a/external/gpl3/gdb/dist/gdb/ada-lang.c Sat Sep 12 19:03:11 2015 +0000
+++ b/external/gpl3/gdb/dist/gdb/ada-lang.c Sat Sep 12 19:04:21 2015 +0000
@@ -2518,7 +2518,7 @@
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 @@
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;
Home |
Main Index |
Thread Index |
Old Index