aboutsummaryrefslogtreecommitdiff
path: root/opcodes/ppc-opc.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2003-07-29 08:29:56 +0000
committerJakub Jelinek <jakub@redhat.com>2003-07-29 08:29:56 +0000
commit0deb7ac528443b38d232fa55f4aec3c09f7ef390 (patch)
tree9334091c38f7e95da17255865f2516b65433cd97 /opcodes/ppc-opc.c
parent9f2339b72b2f6a63f6f78086e5d57e99238996b1 (diff)
downloadgdb-0deb7ac528443b38d232fa55f4aec3c09f7ef390.zip
gdb-0deb7ac528443b38d232fa55f4aec3c09f7ef390.tar.gz
gdb-0deb7ac528443b38d232fa55f4aec3c09f7ef390.tar.bz2
* ppc-opc.c (insert_mbe, extract_mbe): Shift 1L instead of 1 up.
Diffstat (limited to 'opcodes/ppc-opc.c')
-rw-r--r--opcodes/ppc-opc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
index 02d9872..0f04cfb 100644
--- a/opcodes/ppc-opc.c
+++ b/opcodes/ppc-opc.c
@@ -1103,7 +1103,7 @@ insert_mbe (unsigned long insn,
/* me: location of last 1->0 transition */
/* count: # transitions */
- for (mx = 0, mask = 1 << 31; mx < 32; ++mx, mask >>= 1)
+ for (mx = 0, mask = 1L << 31; mx < 32; ++mx, mask >>= 1)
{
if ((uval & mask) && !last)
{
@@ -1144,7 +1144,7 @@ extract_mbe (unsigned long insn,
{
ret = 0;
for (i = mb; i <= me; i++)
- ret |= 1 << (31 - i);
+ ret |= 1L << (31 - i);
}
else if (mb == me + 1)
ret = ~0;
@@ -1152,7 +1152,7 @@ extract_mbe (unsigned long insn,
{
ret = ~0;
for (i = me + 1; i < mb; i++)
- ret &= ~(1 << (31 - i));
+ ret &= ~(1L << (31 - i));
}
return ret;
}