summaryrefslogtreecommitdiff
path: root/src/test/test-hexdecoct.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test-hexdecoct.c')
-rw-r--r--src/test/test-hexdecoct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-hexdecoct.c b/src/test/test-hexdecoct.c
index 6546be5c6..13b1fb7e3 100644
--- a/src/test/test-hexdecoct.c
+++ b/src/test/test-hexdecoct.c
@@ -88,10 +88,10 @@ static void test_unhexmem_one(const char *s, size_t l, int retval) {
if (retval == 0) {
char *answer;
- if (l == (size_t) - 1)
+ if (l == (size_t) -1)
l = strlen(s);
- assert_se((hex = hexmem(mem, len)));
+ assert_se(hex = hexmem(mem, len));
answer = strndupa(s, l);
assert_se(streq(delete_chars(answer, WHITESPACE), hex));
}