fix sign-conversion warning

Use ArrayIndex instead of int.  Fixes #1266
This commit is contained in:
Billy Donahue 2021-02-20 15:51:49 -05:00 committed by GitHub
parent 09c5ecd84f
commit 823b3e0c73
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());