ConvertUTF.h: Suppress a warning with ptrdiff_t on i686. [-Wsign-compare]

llvm-svn: 173436
This commit is contained in:
NAKAMURA Takumi 2013-01-25 10:01:35 +00:00
parent 10ee17d6f8
commit a6202a23e6
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ static inline ConversionResult convertUTF8Sequence(const UTF8 **source,
if (*source == sourceEnd)
return sourceExhausted;
unsigned size = getNumBytesForUTF8(**source);
if (size > sourceEnd - *source)
if ((ptrdiff_t)size > sourceEnd - *source)
return sourceExhausted;
return ConvertUTF8toUTF32(source, *source + size, &target, target + 1, flags);
}