Skip to content

Commit b1bd848

Browse files
authored
fix sign-conversion warning (open-source-parsers#1268)
Use ArrayIndex instead of int. Fixes open-source-parsers#1266
1 parent 09c5ecd commit b1bd848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test_lib_json/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ JSONTEST_FIXTURE_LOCAL(ValueTest, resizeArray) {
351351
}
352352

353353
JSONTEST_FIXTURE_LOCAL(ValueTest, resizePopulatesAllMissingElements) {
354-
int n = 10;
354+
Json::ArrayIndex n = 10;
355355
Json::Value v;
356356
v.resize(n);
357357
JSONTEST_ASSERT_EQUAL(n, v.size());

0 commit comments

Comments
 (0)