From b1bd848241880ccea2d940f67343a899b9f65d5d Mon Sep 17 00:00:00 2001
From: Billy Donahue <BillyDonahue@users.noreply.github.com>
Date: Sat, 20 Feb 2021 16:07:34 -0500
Subject: [PATCH] fix sign-conversion warning (#1268)

Use ArrayIndex instead of int.  Fixes #1266
---
 src/test_lib_json/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test_lib_json/main.cpp b/src/test_lib_json/main.cpp
index e8bc7bc..d0f5364 100644
--- a/src/test_lib_json/main.cpp
+++ b/src/test_lib_json/main.cpp
@@ -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());