mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-14 01:47:54 +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) {
|
JSONTEST_FIXTURE_LOCAL(ValueTest, resizePopulatesAllMissingElements) {
|
||||||
int n = 10;
|
Json::ArrayIndex n = 10;
|
||||||
Json::Value v;
|
Json::Value v;
|
||||||
v.resize(n);
|
v.resize(n);
|
||||||
JSONTEST_ASSERT_EQUAL(n, v.size());
|
JSONTEST_ASSERT_EQUAL(n, v.size());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user