aboutsummaryrefslogtreecommitdiff
path: root/gdb/ax-general.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2010-03-19 18:21:03 +0000
committerStan Shebs <shebs@codesourcery.com>2010-03-19 18:21:03 +0000
commitcf3e25cabf6d6e9ead2bc82719d560020ef0740b (patch)
tree91a9f108fe7ca54894748e14e21dff98fc05cb67 /gdb/ax-general.c
parent6bb85cd171585d397ed3d5755ea19d4f2eb73ead (diff)
downloadgdb-cf3e25cabf6d6e9ead2bc82719d560020ef0740b.zip
gdb-cf3e25cabf6d6e9ead2bc82719d560020ef0740b.tar.gz
gdb-cf3e25cabf6d6e9ead2bc82719d560020ef0740b.tar.bz2
2010-03-19 Stan Shebs <stan@codesourcery.com>
* ax-general.c (ax_const_l): Fix a sizing bug.
Diffstat (limited to 'gdb/ax-general.c')
-rw-r--r--gdb/ax-general.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ax-general.c b/gdb/ax-general.c
index e2ceb3d..69a26d2 100644
--- a/gdb/ax-general.c
+++ b/gdb/ax-general.c
@@ -231,7 +231,7 @@ ax_const_l (struct agent_expr *x, LONGEST l)
use the shortest representation. */
for (op = 0, size = 8; size < 64; size *= 2, op++)
{
- LONGEST lim = 1 << (size - 1);
+ LONGEST lim = ((LONGEST) 1) << (size - 1);
if (-lim <= l && l <= lim - 1)
break;