diff options
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index efc85ba..9212e38 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; |