Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #557 from stmuk/nom
Fix RT #126391: [BUG] Bad "divide by 0" error message
  • Loading branch information
lizmat committed Oct 21, 2015
2 parents a594769 + 8b4c2ab commit 2717139
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/Rat.pm
Expand Up @@ -177,6 +177,7 @@ multi sub infix:</>(Rational \a, Int \b) {
}

multi sub infix:</>(Int \a, Rational \b) {
b.REDUCE-ME; # RT #126391: [BUG] Bad "divide by 0" error message
DIVIDE_NUMBERS
b.denominator * a,
b.numerator,
Expand Down

0 comments on commit 2717139

Please sign in to comment.