From: Tom Tromey Date: Wed, 5 Aug 2009 15:11:45 +0000 (+0000) Subject: * spu-tdep.h (SPUADDR_SPU): Cast result to int. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=768f092942bd4179955957ca124a429a33392666;p=binutils-gdb.git * spu-tdep.h (SPUADDR_SPU): Cast result to int. --- 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))