summaryrefslogtreecommitdiff
path: root/opcodes
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
commitb4f4f1edb8c57558b27601436dd6d10f1fbb01d5 (patch)
tree0b2e91bc1b0f4aa21fc7203d61eb9c515de709d5 /opcodes
parent37e6a5785f230a10be9d22cc8a7d75767fbf6fea (diff)
downloadgdb-b4f4f1edb8c57558b27601436dd6d10f1fbb01d5.tar.gz
* ppc-opc.c (insert_mbe, extract_mbe): Shift 1L instead of 1 up.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/ppc-opc.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 7f21f1d4bb9..23aab9cd1d5 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-29 Jakub Jelinek <jakub@redhat.com>
+
+ * ppc-opc.c (insert_mbe, extract_mbe): Shift 1L instead of 1 up.
+
2003-07-24 Nick Clifton <nickc@redhat.com>
* po/fr.po: Updated French translation.
diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
index 02d9872a97f..0f04cfb8468 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;
}