Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
The opcode 'gcd' was not removed, just num variant.
So, use integer variant.

Signed-off-by: cardinal <tene+cardinal@allalone.org>
  • Loading branch information
fperrad authored and cardinal committed Jun 18, 2009
1 parent 533154c commit f600405
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/classes/Integer.pir
Expand Up @@ -115,17 +115,16 @@ Returns 1
.end


=item gcd(num)
=item gcd(int)

Return the greatest common divisor of C<self> and num

=cut

.sub 'gcd' :method
.param num other
$N0 = self
#gcd $I0, $N0, other
die "opcode 'gcd' was removed"
.param int other
$I1 = self
gcd $I0, $I1, other
.return($I0)
.end

Expand Down

0 comments on commit f600405

Please sign in to comment.