Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix thinko in DIVIDE_NUMBERS
  • Loading branch information
moritz committed Feb 13, 2012
1 parent 5d20cb5 commit ddd1f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Rat.pm
Expand Up @@ -77,7 +77,7 @@ sub DIVIDE_NUMBERS(Int:D \$nu, Int:D \$de, $t1, $t2) {
$numerator = -$numerator;
$denominator = -$denominator;
}
if nqp::istype($t1, FatRat) || nqp::istype($t1, FatRat) {
if nqp::istype($t1, FatRat) || nqp::istype($t2, FatRat) {
my $r := nqp::create(FatRat);
nqp::bindattr($r, FatRat, '$!numerator', nqp::p6decont($numerator));
nqp::bindattr($r, FatRat, '$!denominator', nqp::p6decont($denominator));
Expand Down

0 comments on commit ddd1f02

Please sign in to comment.