From 70a7537584889cf612ddea83eb65fd42818f6e5e Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 7 Oct 2016 22:06:29 +0200 Subject: Make code work on Linux and older compilers --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 2cd31ec..0481f6c 100644 --- a/main.cpp +++ b/main.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include @@ -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; -- cgit v1.2.3-54-g00ecf