Skip to content

Commit

Permalink
All the series tests pass again
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickas authored and moritz committed Sep 6, 2010
1 parent e102240 commit da97ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/operators.pm
Expand Up @@ -385,7 +385,7 @@ our sub _HELPER_generate-series(@lhs, $rhs , :$exclude-limit) {
$factor = $factor.Int;
}
if ($factor < 0) {
return ( 'geometric-switching-sign' , { $_ * $factor } , -> $a, $b { $limit-not-reached.( $a.?abs, $b.abs) && $limit-not-reached.( -$a.?abs, -$b.abs) });
return ( 'geometric-switching-sign' , { $_ * $factor } , -> $a, $b { $a.defined ?? $limit-not-reached.( $a.abs, $b.abs) && $limit-not-reached.( -$a.abs , -$b.abs) !! $limit-not-reached.( $a, $b.abs) && $limit-not-reached.( $a, -$b.abs) });
} else {
return ( 'geometric-same-sign' , { $_ * $factor } , $limit-not-reached);
}
Expand Down

0 comments on commit da97ee9

Please sign in to comment.