From b062e2642a3090ceb99dfed64c8bea5c461324e7 Mon Sep 17 00:00:00 2001 From: Jacek Czerwonka <9115223+jaccz@users.noreply.github.com> Date: Mon, 6 Nov 2023 08:25:00 -0800 Subject: [PATCH] Fixing the mismatch in types so compilers with stricter rules don't complain. (#118) --- cli/gcdmodel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/gcdmodel.cpp b/cli/gcdmodel.cpp index ca19e04..fac291b 100644 --- a/cli/gcdmodel.cpp +++ b/cli/gcdmodel.cpp @@ -382,12 +382,12 @@ void CResult::PrintOutputJson( CModelData& modelData, wostream& wout ) wout << encodingPrefix; wout << "[" << endl; - unsigned int testCasesSize = TestCases.size(); - for( unsigned int i = 0; i < testCasesSize; i++ ) + size_t testCasesSize = TestCases.size(); + for( size_t i = 0; i < testCasesSize; i++ ) { wout << " [" << endl; - unsigned int valuesSize = TestCases[i].Values.size(); - for( unsigned j = 0; j < valuesSize; j++ ) + size_t valuesSize = TestCases[i].Values.size(); + for( size_t j = 0; j < valuesSize; j++ ) { wout << " {" << endl; wout << " " << " \"key\": \"" << modelData.Parameters[j].Name << "\"," << endl;