mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 03:24:41 +08:00
Fix typo in sign extension code in dwarf2_const_value_data().
This commit is contained in:
parent
640c6684a0
commit
bf9198f149
@ -1,3 +1,8 @@
|
||||
2000-05-12 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* dwarf2read.c (dwarf2_const_value_data): Fix typo in sign
|
||||
extension code.
|
||||
|
||||
Fri May 12 20:38:55 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* TODO: Mention weak symbol problem. Mention UnixWare thread
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user