summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/meson.build1
-rw-r--r--test/test_tree.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/test/meson.build b/test/meson.build
index 128bf0b..308b562 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -52,7 +52,6 @@ if not meson.is_subproject() and get_option('lint')
'--suppress=constParameterCallback',
'--suppress=constParameterPointer',
'--suppress=constVariablePointer',
- '--suppress=invalidPrintfArgType_uint',
'--suppress=knownConditionTrueFalse',
'--suppress=selfAssignment',
'--suppress=unreadVariable',
diff --git a/test/test_tree.c b/test/test_tree.c
index 5f093d3..fae6d85 100644
--- a/test/test_tree.c
+++ b/test/test_tree.c
@@ -21,7 +21,7 @@
#include <stdlib.h>
#include <time.h>
-static uintptr_t seed = 1;
+static size_t seed = 1;
static int
int_cmp(const void* a, const void* b, const void* ZIX_UNUSED(user_data))
@@ -237,7 +237,7 @@ main(int argc, char** argv)
if (argc > 2) {
seed = strtoul(argv[2], NULL, 10);
} else {
- seed = (uintptr_t)time(NULL);
+ seed = (size_t)time(NULL);
}
}