From 768f092942bd4179955957ca124a429a33392666 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 5 Aug 2009 15:11:45 +0000 Subject: [PATCH] * spu-tdep.h (SPUADDR_SPU): Cast result to int. --- gdb/ChangeLog | 4 ++++ gdb/spu-tdep.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f523af4ffb3..0d4d4bdd303 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-08-05 Tom Tromey + + * spu-tdep.h (SPUADDR_SPU): Cast result to int. + 2009-08-04 Paul Pluzhnikov * objfiles.h (OBJF_KEEPBFD): Delete. diff --git a/gdb/spu-tdep.h b/gdb/spu-tdep.h index 3be145300c3..53ffd6ffc8e 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)) -- 2.30.2