From c780c948eafdad9b9f13d3964225f366323de369 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Mon, 8 Jul 2024 09:02:52 +0200 Subject: [PATCH] Fix unsigned comparisons --- ApplicationLibCode/UnitTests/RigVfpTables-Test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationLibCode/UnitTests/RigVfpTables-Test.cpp b/ApplicationLibCode/UnitTests/RigVfpTables-Test.cpp index 778c32f3ef..c1d93807e4 100644 --- a/ApplicationLibCode/UnitTests/RigVfpTables-Test.cpp +++ b/ApplicationLibCode/UnitTests/RigVfpTables-Test.cpp @@ -28,7 +28,7 @@ TEST( RigVfpTables, MatchingValues ) std::vector sourceValues = { 1.0, 2.0, 3.0, 4.0, 5.0 }; std::vector valuesForMatch = { 1.0, 2.0, 3.0, 4.0, 5.0 }; std::vector closestIndices = RigVfpTables::uniqueClosestIndices( sourceValues, valuesForMatch ); - for ( int i = 0; i < sourceValues.size(); i++ ) + for ( size_t i = 0; i < sourceValues.size(); i++ ) { EXPECT_EQ( i, closestIndices[i] ); } @@ -42,7 +42,7 @@ TEST( RigVfpTables, MoreDestinationValues ) std::vector sourceValues = { 1.0, 2.0, 3.0, 4.0, 5.0 }; std::vector valuesForMatch = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; std::vector closestIndices = RigVfpTables::uniqueClosestIndices( sourceValues, valuesForMatch ); - for ( int i = 0; i < sourceValues.size(); i++ ) + for ( size_t i = 0; i < sourceValues.size(); i++ ) { EXPECT_EQ( i, closestIndices[i] ); }