Skip to content

Commit

Permalink
Int and Num do Real. jnthn++ for patching it so this works with augum…
Browse files Browse the repository at this point in the history
…ent.
  • Loading branch information
colomon committed Mar 31, 2010
1 parent 3576524 commit 8ba6030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Int.pm
Expand Up @@ -13,7 +13,7 @@ our sub upgrade_to_num_if_needed($test) {
}
}

augment class Int {
augment class Int does Real {
multi method abs() {
self < 0 ?? -self !! self;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/Num.pm
@@ -1,6 +1,6 @@
class Complex { ... }

augment class Num {
augment class Num does Real {
multi method ACCEPTS($other) {
if self eq 'NaN' {
$other eq 'NaN';
Expand Down

0 comments on commit 8ba6030

Please sign in to comment.