summaryrefslogtreecommitdiff
path: root/gcc/ada/tracebak.c
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-02 16:10:25 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-02 16:10:25 +0000
commit13fd92e4924f1a44feec412640d404e6172a09a2 (patch)
tree88ca7cdb2b8cb39589906977c3c7e1b468acce16 /gcc/ada/tracebak.c
parent86fd2723fd7448e1be222abecdc756e5bd63b92c (diff)
downloadgcc-13fd92e4924f1a44feec412640d404e6172a09a2.tar.gz
* tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149182 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/tracebak.c')
-rw-r--r--gcc/ada/tracebak.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/tracebak.c b/gcc/ada/tracebak.c
index 63f93b37eb7..2b134aeee33 100644
--- a/gcc/ada/tracebak.c
+++ b/gcc/ada/tracebak.c
@@ -298,7 +298,7 @@ struct layout
#include <windows.h>
#define IS_BAD_PTR(ptr) (IsBadCodePtr((void *)ptr))
#elif defined (sun)
-#define IS_BAD_PTR(ptr) ((unsigned long)ptr == -1)
+#define IS_BAD_PTR(ptr) ((unsigned long)ptr == -1UL)
#else
#define IS_BAD_PTR(ptr) 0
#endif