Skip to content

Commit

Permalink
Clean up Num.succ and Num.pred, which were infinite looping.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jul 12, 2009
1 parent f55d489 commit d153cdc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/classes/Num.pir
Expand Up @@ -68,15 +68,15 @@ Increment and Decrement Methods
=cut

.sub 'pred' :method
$P0 = clone self
dec $P0
.return ($P0)
$N0 = self
dec $N0
.return ($N0)
.end

.sub 'succ' :method
$P0 = clone self
inc $P0
.return ($P0)
$N0 = self
inc $N0
.return ($N0)
.end


Expand Down

0 comments on commit d153cdc

Please sign in to comment.