]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct casts in TEST_CHECK_LEN() (#4221)
authorJames Jones <jejones3141@gmail.com>
Tue, 7 Sep 2021 14:05:16 +0000 (09:05 -0500)
committerGitHub <noreply@github.com>
Tue, 7 Sep 2021 14:05:16 +0000 (09:05 -0500)
src/lib/util/acutest_helpers.h

index 31f3a293f31a1e991976e18a300ef451da451aa9..bdc3250290d6f3f39ebe4831bc45da4c7fc9a86f 100644 (file)
@@ -31,8 +31,8 @@ extern "C" {
 do { \
        size_t _our_got = (_got); \
        TEST_CHECK(_exp == _our_got); \
-       TEST_MSG("Expected length : %zu", (ssize_t)_exp); \
-       TEST_MSG("Got length      : %zu", (ssize_t)_our_got); \
+       TEST_MSG("Expected length : %zu", (size_t)_exp); \
+       TEST_MSG("Got length      : %zu", (size_t)_our_got); \
 } while(0)
 
 #define TEST_CHECK_RET(_got, _exp) \