From aea6cd0b2d9de821460fe29232c5ef1ea94eb87e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 2 Feb 2024 20:47:49 +0800 Subject: [PATCH] test/tablets: do not compare signed and unsigned this change should silence following warning: ``` test/boost/tablets_test.cc:1600:27: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare] 19:47:04 for (int i = 0; i < smp::count * 20; i++) { 19:47:04 ~ ^ ~~~~~~~~~~~~~~~ ``` Signed-off-by: Kefu Chai --- test/boost/tablets_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/boost/tablets_test.cc b/test/boost/tablets_test.cc index df6d8f1a26..b9b877e963 100644 --- a/test/boost/tablets_test.cc +++ b/test/boost/tablets_test.cc @@ -1597,7 +1597,7 @@ SEASTAR_THREAD_TEST_CASE(basic_tablet_storage_splitting_test) { e.execute_cql( "CREATE TABLE cf (pk int, ck int, v int, PRIMARY KEY (pk, ck))").get(); - for (int i = 0; i < smp::count * 20; i++) { + for (unsigned i = 0; i < smp::count * 20; i++) { e.execute_cql(format("INSERT INTO cf (pk, ck, v) VALUES ({}, 0, 0)", i)).get(); }