summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-20 01:22:46 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-20 01:22:46 +0000
commite7a12b80aebc152d5e729c5672ad2df0385beb66 (patch)
tree709c9fdb8ff2cbb3dab0db2c1aaa8b317490e964 /test
parent7689d019b5ceeb7868cd643417790a9d3ccba653 (diff)
downloadlibcss-e7a12b80aebc152d5e729c5672ad2df0385beb66.tar.gz
libcss-e7a12b80aebc152d5e729c5672ad2df0385beb66.tar.bz2
Squash warnings
svn path=/trunk/libcss/; revision=6149
Diffstat (limited to 'test')
-rw-r--r--test/parse-auto.c6
-rw-r--r--test/parse2-auto.c4
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");
}