summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/rapidjson/test/unittest/istreamwrappertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/rapidjson/test/unittest/istreamwrappertest.cpp')
-rw-r--r--3rdparty/rapidjson/test/unittest/istreamwrappertest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/3rdparty/rapidjson/test/unittest/istreamwrappertest.cpp b/3rdparty/rapidjson/test/unittest/istreamwrappertest.cpp
index 28c756cc9c9..9d6fbcff0de 100644
--- a/3rdparty/rapidjson/test/unittest/istreamwrappertest.cpp
+++ b/3rdparty/rapidjson/test/unittest/istreamwrappertest.cpp
@@ -50,8 +50,9 @@ static void TestStringStream() {
StringStreamType iss(s);
BasicIStreamWrapper<StringStreamType> is(iss);
EXPECT_EQ(0, is.Tell());
- if (sizeof(Ch) == 1)
+ if (sizeof(Ch) == 1) {
EXPECT_EQ(0, is.Peek4()); // less than 4 bytes
+ }
for (int i = 0; i < 3; i++) {
EXPECT_EQ(static_cast<size_t>(i), is.Tell());
EXPECT_EQ('A' + i, is.Peek());