Skip to content

Commit

Permalink
[librpbase/tests] CBCReaderTest: Specify 8U, not 8.
Browse files Browse the repository at this point in the history
Fixes a clang warning in KDevelop:

Comparison of integers of different signs: 'const int' and
'const unsigned long' [-Wsign-compare]
  • Loading branch information
GerbilSoft committed Nov 2, 2024
1 parent d164e8b commit 52ca8c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librpbase/tests/CBCReaderTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 52ca8c2

Please sign in to comment.