diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-25 10:01:35 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-25 10:01:35 +0000 |
commit | ae04222bc5143756c45c399cc8e504c8b12dc6fc (patch) | |
tree | c6783c9ccda0165b13d865ff3113133fd05523f0 /include/clang/Basic/ConvertUTF.h | |
parent | 643728a4f1b71cd35118e53640361a1d28bbdb70 (diff) |
ConvertUTF.h: Suppress a warning with ptrdiff_t on i686. [-Wsign-compare]
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/ConvertUTF.h')
-rw-r--r-- | include/clang/Basic/ConvertUTF.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/ConvertUTF.h b/include/clang/Basic/ConvertUTF.h index 2d13d2c2b9..7e04a12a4b 100644 --- a/include/clang/Basic/ConvertUTF.h +++ b/include/clang/Basic/ConvertUTF.h @@ -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); } |