aboutsummaryrefslogtreecommitdiff
path: root/gdb/spu-tdep.h
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/spu-tdep.h
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/spu-tdep.h')
-rw-r--r--gdb/spu-tdep.h4
1 files changed, 3 insertions, 1 deletions
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))