Commit e695d2e4 authored by Rusty Russell's avatar Rusty Russell

ccan_tokenizer: 64-bit compile fixes.

%zu for size_t printf.
parent 32ed68de
...@@ -147,7 +147,7 @@ static void test_read_cstring(void) { ...@@ -147,7 +147,7 @@ static void test_read_cstring(void) {
queue_skip(mq); queue_skip(mq);
} }
if (i<e) if (i<e)
printf("Item %u is incorrect\n", i); printf("Item %zu is incorrect\n", i);
ok(i==e, "Is message queue correct?"); ok(i==e, "Is message queue correct?");
ok(!queue_count(mq), "Message queue should be empty now."); ok(!queue_count(mq), "Message queue should be empty now.");
} }
...@@ -685,7 +685,7 @@ static void test_scan_number_single(const char *str_pipes, ...@@ -685,7 +685,7 @@ static void test_scan_number_single(const char *str_pipes,
return; return;
} }
if (sn.dots_found != dots_found) { if (sn.dots_found != dots_found) {
fail("%s : sn.dots_found is %d; should be %d", str_pipes, fail("%s : sn.dots_found is %zu; should be %zu", str_pipes,
sn.dots_found, dots_found); sn.dots_found, dots_found);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment