summaryrefslogtreecommitdiff
path: root/api_test
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2015-06-07 17:42:07 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2015-06-07 21:42:15 +0200
commit54abb08e615ab4d094b37ce3102df81779ee2c7a (patch)
tree2be5a0fcb08b73913b5fd620dc90929cde195548 /api_test
parent9087645812433abdc51eb7bb82ade8c3c3bccfa5 (diff)
Use size_t for strlen result in API test
Diffstat (limited to 'api_test')
-rw-r--r--api_test/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/api_test/main.c b/api_test/main.c
index 01df51d..132d48c 100644
--- a/api_test/main.c
+++ b/api_test/main.c
@@ -643,16 +643,16 @@ test_incomplete_char(test_batch_runner *runner, const char *utf8,
static void
test_continuation_byte(test_batch_runner *runner, const char *utf8)
{
- int len = strlen(utf8);
+ size_t len = strlen(utf8);
- for (int pos = 1; pos < len; ++pos) {
+ for (size_t pos = 1; pos < len; ++pos) {
char buf[20];
sprintf(buf, "((((%s))))", utf8);
buf[4+pos] = '\x20';
char expected[50];
strcpy(expected, "<p>((((" UTF8_REPL "\x20");
- for (int i = pos + 1; i < len; ++i) {
+ for (size_t i = pos + 1; i < len; ++i) {
strcat(expected, UTF8_REPL);
}
strcat(expected, "))))</p>\n");