Skip to content

Commit c9ea01c

Browse files
committed
Fix format specifier in flute printf
Fixes lip6#40
1 parent bbb2ac4 commit c9ea01c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flute/src/3.1/flute.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1471,9 +1471,9 @@ void plottree(Tree t)
14711471
int i;
14721472

14731473
for (i=0; i<2*t.deg-2; i++) {
1474-
printf("%d %d\n", t.branch[i].x, t.branch[i].y);
1475-
printf("%d %d\n\n", t.branch[t.branch[i].n].x,
1476-
t.branch[t.branch[i].n].y);
1474+
printf("%lld %lld\n", (long long) t.branch[i].x, (long long) t.branch[i].y);
1475+
printf("%lld %lld\n\n", (long long) t.branch[t.branch[i].n].x,
1476+
(long long) t.branch[t.branch[i].n].y);
14771477
}
14781478
}
14791479

0 commit comments

Comments
 (0)