summaryrefslogtreecommitdiffstats
path: root/test/strindex_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-31 19:28:54 +0100
committerDavid Robillard <d@drobilla.net>2020-12-31 20:15:19 +0100
commit53e9bd0f9ea02c47510a47ab37901f2a284a3632 (patch)
treece9b508ec356f2d4eaa32ca18c17277aed739773 /test/strindex_test.c
parent585128b152486afd4c2a8811266bdd7cd04c746e (diff)
downloadzix-53e9bd0f9ea02c47510a47ab37901f2a284a3632.tar.gz
zix-53e9bd0f9ea02c47510a47ab37901f2a284a3632.tar.bz2
zix-53e9bd0f9ea02c47510a47ab37901f2a284a3632.zip
Fix MinGW build
Diffstat (limited to 'test/strindex_test.c')
-rw-r--r--test/strindex_test.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/strindex_test.c b/test/strindex_test.c
index 1c36811..42d3c66 100644
--- a/test/strindex_test.c
+++ b/test/strindex_test.c
@@ -17,6 +17,7 @@
#include "zix/common.h"
#include "zix/strindex.h"
+#include <inttypes.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
@@ -45,11 +46,15 @@ main(void)
char* match = NULL;
ZixStatus ret = zix_strindex_find(strindex, str + i, &match);
if (ret) {
- return test_fail("No match for substring at %zu length %zu\n", i, l);
+ return test_fail(
+ "No match for substring at %" PRIuPTR " length %" PRIuPTR "\n", i, l);
}
if (strncmp(str + i, match, l)) {
- return test_fail("Bad match for substring at %zu length %zu\n", i, l);
+ return test_fail("Bad match for substring at %" PRIuPTR
+ " length %" PRIuPTR "\n",
+ i,
+ l);
}
}
}