summaryrefslogtreecommitdiff
path: root/tests/test_astobj2_thrash.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_astobj2_thrash.c')
-rw-r--r--tests/test_astobj2_thrash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_astobj2_thrash.c b/tests/test_astobj2_thrash.c
index f43445a05..814234cc3 100644
--- a/tests/test_astobj2_thrash.c
+++ b/tests/test_astobj2_thrash.c
@@ -82,7 +82,7 @@ static char *ht_new(int i)
if (keybuf == NULL) {
return NULL;
}
- needed = snprintf(keybuf, buflen, "key%08x", i);
+ needed = snprintf(keybuf, buflen, "key%08x", (unsigned)i);
ast_atomic_fetchadd_int(&alloc_count, 1);
ast_assert(needed + 1 <= buflen);
return keybuf;