ICU-3223 Make the constant number in U_MAX_PTR an unsigned constant

X-SVN-Rev: 12973
This commit is contained in:
George Rhoten 2003-08-28 18:21:43 +00:00
parent 56cf6a3bb2
commit 488f8be9e3

View File

@ -440,7 +440,7 @@ uprv_isInvariantUString(const UChar *s, int32_t length);
*/
# define U_MAX_PTR(base) ((void *)(((char *)base)-((int32_t)(base))+((int32_t)0xffefff)))
# else
# define U_MAX_PTR(base) ((void *)(((char *)(base)+0x7fffffff) > (char *)(base) ? ((char *)(base)+0x7fffffff) : (char *)-1))
# define U_MAX_PTR(base) ((void *)(((char *)(base)+0x7fffffffu) > (char *)(base) ? ((char *)(base)+0x7fffffffu) : (char *)-1))
# endif
#endif