diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-15 16:45:36 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-15 16:45:36 +0000 |
commit | 71327cd21e3dcc793dd6e0cf99f5295e58e0322c (patch) | |
tree | a3a3ccb34fac959d37f6e2480186344b7602a6a8 /test/select-auto.c | |
parent | f3871ddf33d016499a7dac7613e9acbc0ca47eb2 (diff) | |
download | libcss-71327cd21e3dcc793dd6e0cf99f5295e58e0322c.tar.gz libcss-71327cd21e3dcc793dd6e0cf99f5295e58e0322c.tar.bz2 |
More c89isms
svn path=/trunk/libcss/; revision=7100
Diffstat (limited to 'test/select-auto.c')
-rw-r--r-- | test/select-auto.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/select-auto.c b/test/select-auto.c index 5a9bfc2..c42c82e 100644 --- a/test/select-auto.c +++ b/test/select-auto.c @@ -154,8 +154,8 @@ int main(int argc, char **argv) return 1; } - printf("css_hint: %lu\n", sizeof(css_hint)); - printf("computed: %lu\n", sizeof(css_computed_style)); + printf("css_hint: %u\n", (int) sizeof(css_hint)); + printf("computed: %u\n", (int) sizeof(css_computed_style)); assert(css_initialise(argv[1], myrealloc, NULL) == CSS_OK); @@ -642,8 +642,9 @@ void run_test(line_ctx *ctx, const char *exp, size_t explen) dump_computed_style(computed, buf, &buflen); if (8192 - buflen != explen || memcmp(buf, exp, explen) != 0) { - printf("Expected (%zu):\n%.*s\n", explen, (int) explen, exp); - printf("Result (%zu):\n%.*s\n", 8192 - buflen, + printf("Expected (%u):\n%.*s\n", + (int) explen, (int) explen, exp); + printf("Result (%u):\n%.*s\n", (int) (8192 - buflen), (int) (8192 - buflen), buf); assert(0 && "Result doesn't match expected"); } |