fix sign-conversion warning (#1268)

Use ArrayIndex instead of int.  Fixes #1266
This commit is contained in:
Billy Donahue 2021-02-20 16:07:34 -05:00 committed by GitHub
parent 09c5ecd84f
commit b1bd848241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -351,7 +351,7 @@ JSONTEST_FIXTURE_LOCAL(ValueTest, resizeArray) {
}
JSONTEST_FIXTURE_LOCAL(ValueTest, resizePopulatesAllMissingElements) {
int n = 10;
Json::ArrayIndex n = 10;
Json::Value v;
v.resize(n);
JSONTEST_ASSERT_EQUAL(n, v.size());