Skip to content

Commit 8f43f8b

Browse files
authored
Merge pull request #365 from mbrukman/fix-compilation-pprintint
Fix compilation when `PPRINTINT_TEST` is set
2 parents 0d0e18e + 9293230 commit 8f43f8b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/flatcc/portable/pprintint.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,19 +599,19 @@ int main()
599599
}
600600
k = print_bool(1, buf);
601601
if (strlen(buf) != k) printf("length error\n");
602-
if (strcmp("true", buf) {
602+
if (strcmp("true", buf)) {
603603
printf("1 didn't print 'true' as expected, got:\n'%s'\n", buf);
604604
++failed;
605605
}
606606
k = print_bool(-1, buf);
607607
if (strlen(buf) != k) printf("length error\n");
608-
if (strcmp("true", buf) {
608+
if (strcmp("true", buf)) {
609609
printf("-1 didn't print 'true' as expected, got:\n'%s'\n", buf);
610610
++failed;
611611
}
612-
k = print_bool(, buf);
612+
k = print_bool(0, buf);
613613
if (strlen(buf) != k) printf("length error\n");
614-
if (strcmp("false", buf) {
614+
if (strcmp("false", buf)) {
615615
printf("0 didn't print 'false' as expected, got:\n'%s'\n", buf);
616616
++failed;
617617
}

0 commit comments

Comments
 (0)