diff options
| author | Nathan Moinvaziri <nathan@nathanm.com> | 2022-06-06 16:18:19 -0700 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2022-06-07 12:46:52 +0200 |
| commit | 6f878d036f8c418ea41721895cb6ba31a2f0f3a6 (patch) | |
| tree | f756f5d11c827d7a1c8cf34c638f0b4a0153c489 /test | |
| parent | 443905a451bcb871220420f12f3785c940afca04 (diff) | |
| download | Project-Tick-6f878d036f8c418ea41721895cb6ba31a2f0f3a6.tar.gz Project-Tick-6f878d036f8c418ea41721895cb6ba31a2f0f3a6.zip | |
Fixed signed warnings in GZ unit tests.
test_gzio.cc(44): warning C4389: '!=': signed/unsigned mismatch
test_gzio.cc(72): warning C4389: '!=': signed/unsigned mismatch
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_gzio.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_gzio.cc b/test/test_gzio.cc index 46baa028eb..59e46f520a 100644 --- a/test/test_gzio.cc +++ b/test/test_gzio.cc @@ -41,7 +41,7 @@ TEST(gzip, readwrite) { EXPECT_GE(PREFIX(gzseek)(file, 1L, SEEK_CUR), 0); /* Write hello, hello! using gzfwrite using best compression level */ EXPECT_EQ(PREFIX(gzsetparams)(file, Z_BEST_COMPRESSION, Z_DEFAULT_STRATEGY), Z_OK); - EXPECT_NE(PREFIX(gzfwrite)(hello, hello_len, 1, file), 0); + EXPECT_NE(PREFIX(gzfwrite)(hello, hello_len, 1, file), 0UL); /* Flush compressed bytes to file */ EXPECT_EQ(PREFIX(gzflush)(file, Z_SYNC_FLUSH), Z_OK); compr_len = (uint32_t)PREFIX(gzoffset)(file); @@ -69,7 +69,7 @@ TEST(gzip, readwrite) { /* Read first hello, hello! string with gzgets */ strcpy((char*)uncompr, "garbages"); PREFIX(gzgets)(file, (char*)uncompr, (int)uncompr_len); - EXPECT_EQ(strlen((char*)uncompr), 7); /* " hello!" */ + EXPECT_EQ(strlen((char*)uncompr), 7UL); /* " hello!" */ EXPECT_STREQ((char*)uncompr, hello + 6); /* Seek to second hello, hello! string */ |
