From e7a12b80aebc152d5e729c5672ad2df0385beb66 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 20 Jan 2009 01:22:46 +0000 Subject: Squash warnings svn path=/trunk/libcss/; revision=6149 --- test/parse-auto.c | 6 +++--- test/parse2-auto.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/parse-auto.c b/test/parse-auto.c index 02c9c53..9a03b25 100644 --- a/test/parse-auto.c +++ b/test/parse-auto.c @@ -323,7 +323,7 @@ void run_test(const uint8_t *data, size_t len, exp_entry *exp, size_t explen) testnum++; if (sheet->rule_count != explen) { - printf("%d: Got %d rules. Expected %d\n", + printf("%d: Got %d rules. Expected %zu\n", testnum, sheet->rule_count, explen); assert(0 && "Unexpected number of rules"); } @@ -395,7 +395,7 @@ void validate_rule_selector(css_rule_selector *s, exp_entry *e, int testnum) assert(0 && "Unexpected bytecode"); } else if (e->bytecode != NULL && s->style != NULL) { if (s->style->length != e->bcused) { - printf("%d: Got length %d, Expected %d\n", + printf("%d: Got length %d, Expected %zu\n", testnum, s->style->length, e->bcused); assert(0 && "Bytecode lengths differ"); @@ -429,7 +429,7 @@ void validate_rule_selector(css_rule_selector *s, exp_entry *e, int testnum) i += sizeof (void *) - 1; } else if (((uint8_t *) s->style->bytecode)[i] != e->bytecode[i]) { - printf("%d: Bytecode differs at %d\n", + printf("%d: Bytecode differs at %zu\n", testnum, i); while (i < e->bcused) { printf("%.2x ", diff --git a/test/parse2-auto.c b/test/parse2-auto.c index 5f6b8bf..59ae220 100644 --- a/test/parse2-auto.c +++ b/test/parse2-auto.c @@ -188,9 +188,9 @@ void run_test(const uint8_t *data, size_t len, const char *exp, size_t explen) dump_sheet(sheet, buf, &buflen); if (2 * explen - buflen != explen || memcmp(buf, exp, explen) != 0) { - printf("Expected (%zu):\n%.*s\n", explen, explen, exp); + printf("Expected (%zu):\n%.*s\n", explen, (int) explen, exp); printf("Result (%zu):\n%.*s\n", 2 * explen - buflen, - 2 * explen - buflen, buf); + (int) (2 * explen - buflen), buf); assert(0 && "Result doesn't match expected"); } -- cgit v1.2.3