mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-26 18:51:04 +08:00
fix sign-conversion warning (#1268)
Use ArrayIndex instead of int. Fixes #1266
This commit is contained in:
parent
09c5ecd84f
commit
b1bd848241
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user