From: Kevin Buettner Date: Sat, 13 May 2000 00:51:35 +0000 (+0000) Subject: Fix typo in sign extension code in dwarf2_const_value_data(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf9198f149e3545c1fa21560dfc2b7a7f2a93759;p=binutils-gdb.git Fix typo in sign extension code in dwarf2_const_value_data(). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c0b6866e2c6..135fadb9621 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-05-12 Kevin Buettner + + * dwarf2read.c (dwarf2_const_value_data): Fix typo in sign + extension code. + Fri May 12 20:38:55 2000 Andrew Cagney * TODO: Mention weak symbol problem. Mention UnixWare thread diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index efc85badaff..9212e389ffc 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -4341,7 +4341,7 @@ dwarf2_const_value_data (struct attribute *attr, if (TYPE_UNSIGNED (SYMBOL_TYPE (sym))) l &= ((LONGEST) 1 << bits) - 1; else - l = (l << (sizeof (l) - bits)) >> (sizeof (l) - bits); + l = (l << (sizeof (l) * 8 - bits)) >> (sizeof (l) * 8 - bits); } SYMBOL_VALUE (sym) = l;