Skip to content

Commit b563f22

Browse files
committed
fix sprintfdirectives, which returns an int
1 parent 3c2b6e3 commit b563f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HLL/sprintf.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ my module sprintf {
360360
class Directives {
361361
method TOP($/) {
362362
my $count := 0;
363-
$count := $count + $_.ast for $<statement>;
363+
$count := nqp::add_i($count, $_.ast) for $<statement>;
364364
make $count
365365
}
366366

0 commit comments

Comments
 (0)