From dd577ca5883c92755b34f23a3c41fc171c0f745e Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Fri, 11 Jun 1993 17:25:57 +0000 Subject: [PATCH] * defs.h (INT_MAX): Cast unsigned shift result to int. --- gdb/ChangeLog | 4 ++++ gdb/defs.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 12d97d4abdc..853a9be5d2a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Fri Jun 11 10:24:35 1993 Fred Fish (fnf@cygnus.com) + + * defs.h (INT_MAX): Cast unsigned shift result to int. + Thu Jun 10 13:26:41 1993 Fred Fish (fnf@cygnus.com) * elfread.c (elf_symtab_read): Add bfd section address to bfd diff --git a/gdb/defs.h b/gdb/defs.h index 031f2be1423..9dae5e7ec79 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -40,7 +40,7 @@ typedef unsigned int CORE_ADDR; #define STREQ(a,b) (*(a) == *(b) ? !strcmp ((a), (b)) : 0) #define STREQN(a,b,c) (*(a) == *(b) ? !strncmp ((a), (b), (c)) : 0) -/* The character C++ uses to build identifiers that must be unique from +/* The character GNU C++ uses to build identifiers that must be unique from the program's identifiers (such as $this and $$vptr). */ #define CPLUS_MARKER '$' /* May be overridden to '.' for SysV */ @@ -438,7 +438,7 @@ enum val_prettyprint #endif #if !defined (INT_MAX) -#define INT_MAX (UINT_MAX >> 1) /* 0x7FFFFFFF for 32-bits */ +#define INT_MAX ((int)(UINT_MAX >> 1)) /* 0x7FFFFFFF for 32-bits */ #endif #if !defined (INT_MIN) -- 2.30.2