aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/atom/forge-overflow-test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-15 13:01:46 -0400
committerDavid Robillard <d@drobilla.net>2022-07-17 17:08:37 -0400
commitd42276f10266d826e20d51a5cfb490bddc2f6e89 (patch)
tree30b145528a0fd77151c6566b7a60fd859333998a /lv2/atom/forge-overflow-test.c
parentf723513288fe2cd3a5b59a94b470bc43e456e7a3 (diff)
downloadlv2-d42276f10266d826e20d51a5cfb490bddc2f6e89.tar.xz
Make test logging portable to MinGW and old MS runtimes
Diffstat (limited to 'lv2/atom/forge-overflow-test.c')
-rw-r--r--lv2/atom/forge-overflow-test.c4
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);
}
}