Skip to content

Commit

Permalink
Hopefully regain 5.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tsee committed Jun 22, 2012
1 parent a4927fa commit a2852b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/320cumulate.t
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ sub cumulate {
for my $i ( 0 .. $#$coord ) {
my $adjacent = [ @$coord ];
next if --$adjacent->[$i] < 0;
$sum += lookup($out, $adjacent) // cumulate($in, $out, $adjacent);
my $l = lookup($out, $adjacent);
$sum += defined($l) ? $l : cumulate($in, $out, $adjacent);
}
# update the output cumulation matrix
assign($sum, $out, $coord);
Expand Down

0 comments on commit a2852b3

Please sign in to comment.