aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-08-05 15:11:45 +0000
committerTom Tromey <tromey@redhat.com>2009-08-05 15:11:45 +0000
commit768f092942bd4179955957ca124a429a33392666 (patch)
tree715fceba7a94077265440f6bf8c78dcfb9226b35 /gdb
parent8453da2e5762e4b90d5a46e831a3be2acf1805df (diff)
downloadgdb-768f092942bd4179955957ca124a429a33392666.zip
gdb-768f092942bd4179955957ca124a429a33392666.tar.gz
gdb-768f092942bd4179955957ca124a429a33392666.tar.bz2
* spu-tdep.h (SPUADDR_SPU): Cast result to int.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/spu-tdep.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f523af4..0d4d4bd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-05 Tom Tromey <tromey@redhat.com>
+
+ * spu-tdep.h (SPUADDR_SPU): Cast result to int.
+
2009-08-04 Paul Pluzhnikov <ppluzhnikov@google.com>
* objfiles.h (OBJF_KEEPBFD): Delete.
diff --git a/gdb/spu-tdep.h b/gdb/spu-tdep.h
index 3be1453..53ffd6f 100644
--- a/gdb/spu-tdep.h
+++ b/gdb/spu-tdep.h
@@ -54,7 +54,9 @@ enum spu_regnum
#define SPUADDR(spu, addr) \
((spu) != -1? (ULONGEST)1 << 63 | (ULONGEST)(spu) << 32 | (addr) : (addr))
#define SPUADDR_SPU(addr) \
- (((addr) & (ULONGEST)1 << 63)? (ULONGEST)(addr) >> 32 & 0x7fffffff : -1)
+ (((addr) & (ULONGEST)1 << 63) \
+ ? (int) ((ULONGEST)(addr) >> 32 & 0x7fffffff) \
+ : -1)
#define SPUADDR_ADDR(addr) \
(((addr) & (ULONGEST)1 << 63)? (ULONGEST)(addr) & 0xffffffff : (addr))