Created
July 30, 2013 14:03
-
-
Save grondilu/6113160 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From cca7ffe335a65cbf1c7c0e95a45017e16e5979fa Mon Sep 17 00:00:00 2001 | |
From: Lucien Grondin <grondilu@yahoo.fr> | |
Date: Tue, 30 Jul 2013 15:59:12 +0200 | |
Subject: [PATCH 2/2] fixing typo in signature | |
--- | |
src/core/Complex.pm | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/src/core/Complex.pm b/src/core/Complex.pm | |
index 00c1f10..4e32479 100644 | |
--- a/src/core/Complex.pm | |
+++ b/src/core/Complex.pm | |
@@ -400,7 +400,7 @@ multi sub infix:</>(Real \a, Complex:D \b) returns Complex:D { | |
Complex.new(a, 0) / b; | |
} | |
-multi sub infix:<**>(Complex:D $z is copy, Int:D \n where \n > 0) { | |
+multi sub infix:<**>(Complex:D $z is copy, Int:D \n where n > 0) { | |
[*] gather for n, * div 2 ...^ 0 -> $n { | |
take $z unless $n %% 2; | |
$z *= $z; | |
-- | |
1.8.1.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment