summaryrefslogtreecommitdiff
path: root/security/py-pycryptopp/files/patch-embeddedcryptopp_algebra.cpp
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2013-11-02 21:30:51 +0000
committerJohn Marino <marino@FreeBSD.org>2013-11-02 21:30:51 +0000
commit3688feb4b5e892ad7b39b2388dcc184e13097f8f (patch)
treeb99b9e6e06a6e833bee583b81b3645e8aacf4291 /security/py-pycryptopp/files/patch-embeddedcryptopp_algebra.cpp
parentmultimedia/vlc: enable OSS (diff)
security/py-pycryptopp: Fix C++ issues on modern gcc
Approved by: portmgr (bapt, implicit)
Diffstat (limited to '')
-rw-r--r--security/py-pycryptopp/files/patch-embeddedcryptopp_algebra.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/security/py-pycryptopp/files/patch-embeddedcryptopp_algebra.cpp b/security/py-pycryptopp/files/patch-embeddedcryptopp_algebra.cpp
new file mode 100644
index 000000000000..938c2b269ed1
--- /dev/null
+++ b/security/py-pycryptopp/files/patch-embeddedcryptopp_algebra.cpp
@@ -0,0 +1,20 @@
+--- embeddedcryptopp/algebra.cpp.orig 2010-09-21 04:36:16.000000000 +0000
++++ embeddedcryptopp/algebra.cpp
+@@ -58,7 +58,7 @@ template <class T> const T& AbstractEucl
+ Element g[3]={b, a};
+ unsigned int i0=0, i1=1, i2=2;
+
+- while (!Equal(g[i1], this->Identity()))
++ while (!this->Equal(g[i1], this->Identity()))
+ {
+ g[i2] = Mod(g[i0], g[i1]);
+ unsigned int t = i0; i0 = i1; i1 = i2; i2 = t;
+@@ -74,7 +74,7 @@ template <class T> const typename Quotie
+ Element y;
+ unsigned int i0=0, i1=1, i2=2;
+
+- while (!Equal(g[i1], Identity()))
++ while (!this->Equal(g[i1], Identity()))
+ {
+ // y = g[i0] / g[i1];
+ // g[i2] = g[i0] % g[i1];