diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-07-11 14:38:01 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-07-11 14:38:01 +0000 |
commit | e82535c969fcd4091495c474b18928ba99aff65d (patch) | |
tree | 5512646aed5a4020549c613ec79ec94ac4373e83 /test/tokeniser3.c | |
parent | ba494e83259f7aae98ea4ad44a753fa9a406fb91 (diff) | |
download | libhubbub-e82535c969fcd4091495c474b18928ba99aff65d.tar.gz libhubbub-e82535c969fcd4091495c474b18928ba99aff65d.tar.bz2 |
Cast values to int to avoid warnings.
svn path=/trunk/hubbub/; revision=4598
Diffstat (limited to 'test/tokeniser3.c')
-rw-r--r-- | test/tokeniser3.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |