forked from OSchip/llvm-project
ConvertUTF.h: Suppress a warning with ptrdiff_t on i686. [-Wsign-compare]
llvm-svn: 173436
This commit is contained in:
parent
10ee17d6f8
commit
a6202a23e6
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue