From f183282b64f78df44f54b61d7d8c7d0d7db537f3 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Fri, 22 Jan 2016 19:03:00 +0800 Subject: [PATCH] Fix warning --- include/rapidjson/reader.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/rapidjson/reader.h b/include/rapidjson/reader.h index 6022e50..cd37a27 100644 --- a/include/rapidjson/reader.h +++ b/include/rapidjson/reader.h @@ -680,7 +680,7 @@ private: ++length_; } - RAPIDJSON_FORCEINLINE void* Push(size_t count) { + RAPIDJSON_FORCEINLINE void* Push(SizeType count) { length_ += count; return stack_.template Push(count); } @@ -831,13 +831,13 @@ private: const __m128i x = _mm_or_si128(_mm_or_si128(t1, t2), t3); unsigned short r = static_cast(_mm_movemask_epi8(x)); if (RAPIDJSON_UNLIKELY(r != 0)) { // some of characters is escaped - size_t length; + SizeType length; #ifdef _MSC_VER // Find the index of first escaped unsigned long offset; _BitScanForward(&offset, r); length = offset; #else - length = static_cast(__builtin_ffs(r) - 1); + length = static_cast(__builtin_ffs(r) - 1); #endif char* q = reinterpret_cast(os.Push(length)); for (size_t i = 0; i < length; i++)