diff options
Diffstat (limited to 'lv2/atom/forge-overflow-test.c')
-rw-r--r-- | lv2/atom/forge-overflow-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lv2/atom/forge-overflow-test.c b/lv2/atom/forge-overflow-test.c index 5741453..27f3497 100644 --- a/lv2/atom/forge-overflow-test.c +++ b/lv2/atom/forge-overflow-test.c @@ -37,12 +37,12 @@ test_string_overflow(void) lv2_atom_forge_init(&forge, &map); // Check that writing increasingly long strings fails at the right point - for (size_t count = 0; count < MAX_CHARS; ++count) { + for (unsigned count = 0; count < MAX_CHARS; ++count) { lv2_atom_forge_set_buffer(&forge, buf, capacity); const LV2_Atom_Forge_Ref ref = lv2_atom_forge_string(&forge, str, count); if (!ref) { - return test_fail("Failed to write %zu byte string\n", count); + return test_fail("Failed to write %u byte string\n", count); } } |