From 52ca8c2cf99a6401c05418fd7b48b020248fa8bf Mon Sep 17 00:00:00 2001 From: David Korth <gerbilsoft@gerbilsoft.com> Date: Sat, 2 Nov 2024 00:00:54 -0400 Subject: [PATCH] [librpbase/tests] CBCReaderTest: Specify 8U, not 8. Fixes a clang warning in KDevelop: Comparison of integers of different signs: 'const int' and 'const unsigned long' [-Wsign-compare] --- src/librpbase/tests/CBCReaderTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librpbase/tests/CBCReaderTest.cpp b/src/librpbase/tests/CBCReaderTest.cpp index 75766b75d..644e7fbd6 100644 --- a/src/librpbase/tests/CBCReaderTest.cpp +++ b/src/librpbase/tests/CBCReaderTest.cpp @@ -355,7 +355,7 @@ TEST_P(CBCReaderTest, decryptLast8Bytes) array<uint8_t, 16> decrypted; decrypted.fill(0x55); - EXPECT_EQ(8, m_cbcReader->seekAndRead(0x38, decrypted.data(), 16)); + EXPECT_EQ(8U, m_cbcReader->seekAndRead(0x38, decrypted.data(), 16)); EXPECT_EQ(sizeof(plaintext), m_cbcReader->tell()); // Compare the decrypted data to the known plaintext.