[cfe-commits] r173436 - /cfe/trunk/include/clang/Basic/ConvertUTF.h
NAKAMURA Takumi
geek4civic at gmail.com
Fri Jan 25 02:01:36 PST 2013
Author: chapuni
Date: Fri Jan 25 04:01:35 2013
New Revision: 173436
URL: http://llvm.org/viewvc/llvm-project?rev=173436&view=rev
Log:
ConvertUTF.h: Suppress a warning with ptrdiff_t on i686. [-Wsign-compare]
Modified:
cfe/trunk/include/clang/Basic/ConvertUTF.h
Modified: cfe/trunk/include/clang/Basic/ConvertUTF.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/ConvertUTF.h?rev=173436&r1=173435&r2=173436&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/ConvertUTF.h (original)
+++ cfe/trunk/include/clang/Basic/ConvertUTF.h Fri Jan 25 04:01:35 2013
@@ -217,7 +217,7 @@
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);
}
More information about the cfe-commits
mailing list