* tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.

From-SVN: r149182
This commit is contained in:
Rainer Orth 2009-07-02 16:10:25 +00:00 committed by Rainer Orth
parent 02583d3c94
commit 74c9e8526b
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR ada/40609

View File

@ -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