From e82535c969fcd4091495c474b18928ba99aff65d Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 11 Jul 2008 14:38:01 +0000 Subject: Cast values to int to avoid warnings. svn path=/trunk/hubbub/; revision=4598 --- test/tokeniser2.c | 3 ++- test/tokeniser3.c | 5 +++-- 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) ¶ms) == 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); -- cgit v1.2.3