From: Markus Scherer Date: Wed, 27 Jul 2011 23:37:05 +0000 (+0000) Subject: ICU-8452 do not use ptrdiff_t (signed) as a fallback for uintptr_t (unsigned) X-Git-Tag: milestone-59-0-1~4612 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a84cf4df0ffb30b5773e8f89684cd2e656d0c790;p=icu ICU-8452 do not use ptrdiff_t (signed) as a fallback for uintptr_t (unsigned) X-SVN-Rev: 30438 --- diff --git a/icu4c/source/common/putilimp.h b/icu4c/source/common/putilimp.h index 84b605ec11c..4d92acd35a2 100644 --- a/icu4c/source/common/putilimp.h +++ b/icu4c/source/common/putilimp.h @@ -31,9 +31,11 @@ * "On XSI-conformant systems, the intptr_t and uintptr_t types are required; * otherwise, they are optional." * We assume that when uintptr_t is defined, UINTPTR_MAX is defined as well. + * + * Do not use ptrdiff_t since it is signed. size_t is unsigned. */ #if !defined(__intptr_t_defined) && !defined(UINTPTR_MAX) -typedef ptrdiff_t uintptr_t; +typedef size_t uintptr_t; #endif /**