avoid truncation warning on MSVC

This commit is contained in:
Philipp A. Hartmann 2014-07-03 16:52:49 +02:00
parent afa8279d8a
commit 249529f039

View File

@ -224,7 +224,7 @@ inline const char *SkipWhitespace_SIMD(const char* p) {
x = _mm_or_si128(x, _mm_cmpeq_epi8(s, w1));
x = _mm_or_si128(x, _mm_cmpeq_epi8(s, w2));
x = _mm_or_si128(x, _mm_cmpeq_epi8(s, w3));
unsigned short r = ~_mm_movemask_epi8(x);
unsigned short r = (unsigned short)~_mm_movemask_epi8(x);
if (r == 0) // all 16 characters are whitespace
p += 16;
else { // some of characters may be non-whitespace