summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/tokeniser2.c3
-rw-r--r--test/tokeniser3.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/test/tokeniser2.c b/test/tokeniser2.c
index 2054c6b..ac6d89c 100644
--- a/test/tokeniser2.c
+++ b/test/tokeniser2.c
@@ -209,7 +209,8 @@ void run_test(context *ctx)
HUBBUB_OK);
printf("Input: '%.*s' (%d)\n", (int) ctx->input_len,
- (const char *) ctx->input, ctx->input_len);
+ (const char *) ctx->input,
+ (int) ctx->input_len);
assert(hubbub_tokeniser_run(tok) == HUBBUB_OK);
diff --git a/test/tokeniser3.c b/test/tokeniser3.c
index 523bfcd..76b1d07 100644
--- a/test/tokeniser3.c
+++ b/test/tokeniser3.c
@@ -204,7 +204,8 @@ void run_test(context *ctx)
&params) == HUBBUB_OK);
printf("Input: '%.*s' (%d)\n", (int) ctx->input_len,
- (const char *) ctx->input, ctx->input_len);
+ (const char *) ctx->input,
+ (int) ctx->input_len);
for (j = 0; j < ctx->input_len; j++) {
assert(hubbub_inputstream_append(stream,
@@ -448,7 +449,7 @@ void token_handler(const hubbub_token *token, void *pw)
expstrlen - ctx->char_off);
printf("expected: '%.*s'\n",
- len, expstr + ctx->char_off);
+ (int) len, expstr + ctx->char_off);
printf(" got: '%.*s'\n",
(int) token->data.character.len, gotstr);