aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-10-07 22:06:29 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-07 22:06:29 +0200
commit70a7537584889cf612ddea83eb65fd42818f6e5e (patch)
tree7d84990995b5d3163b193078058736a46d62b089 /main.cpp
parent241518f369efce64046be36a15fcb722b00e9477 (diff)
Make code work on Linux and older compilers
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 2cd31ec..0481f6c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2,6 +2,7 @@
#include <fstream>
#include <sstream>
#include <stdexcept>
+#include <algorithm>
#include <cstdlib>
#include <cctype>
#include <ctime>
@@ -133,7 +134,7 @@ void testisqrt(int argc,char **argv){
void performrsa(){
RSA::PrivateKey privkey;
Bigint p(1000000007),q(3000000019U);
- privkey.pub.mod=3000000040000000133LL;
+ privkey.pub.mod=(int64_t)3000000040000000133LL;
privkey.pub.exp=65537;
{
Bigint x;