Skip to content

Commit

Permalink
Fix Int.sign and Rat.sign so they correctly return Ints.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Nov 23, 2009
1 parent 1445ba3 commit a55d864
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/setting/Int.pm
Expand Up @@ -34,7 +34,7 @@ class Int is also {
}

our Int multi method sign() {
self.Num.sign.Int
self.Num.sign
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/setting/Rat.pm
Expand Up @@ -49,8 +49,8 @@ class Rat {
self < 0 ?? -self !! self;
}

our Rat multi method sign() {
self.Num.sign.Rat
our Int multi method sign() {
self.Num.sign
}
}

Expand Down

0 comments on commit a55d864

Please sign in to comment.