Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix stupid thinko in Complex math
  • Loading branch information
moritz committed Jul 1, 2011
1 parent 70f9c03 commit 22676c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Complex.pm
Expand Up @@ -130,7 +130,7 @@ multi sub infix:<->(Complex \$a, Complex \$b) {
nqp::bindattr_n( $new, Complex, '$!re',
nqp::sub_n(
nqp::getattr_n(pir::perl6_decontainerize__PP($a), Complex, '$!re'),
nqp::unbox_n($b.Num)
nqp::getattr_n(pir::perl6_decontainerize__PP($b), Complex, '$!re'),
)
);
nqp::bindattr_n($new, Complex, '$!im',
Expand Down

0 comments on commit 22676c5

Please sign in to comment.