aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-05-13 00:51:35 +0000
committerKevin Buettner <kevinb@redhat.com>2000-05-13 00:51:35 +0000
commitbf9198f149e3545c1fa21560dfc2b7a7f2a93759 (patch)
tree89f17e16ac33f67965d27e5fbd16ba55fda4f460 /gdb/dwarf2read.c
parent640c6684a0391fae3db8514c95081ae3c945c5f9 (diff)
downloadgdb-bf9198f149e3545c1fa21560dfc2b7a7f2a93759.zip
gdb-bf9198f149e3545c1fa21560dfc2b7a7f2a93759.tar.gz
gdb-bf9198f149e3545c1fa21560dfc2b7a7f2a93759.tar.bz2
Fix typo in sign extension code in dwarf2_const_value_data().
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
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;