diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-10-07 22:06:29 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-10-07 22:06:29 +0200 |
commit | 70a7537584889cf612ddea83eb65fd42818f6e5e (patch) | |
tree | 7d84990995b5d3163b193078058736a46d62b089 /main.cpp | |
parent | 241518f369efce64046be36a15fcb722b00e9477 (diff) |
Make code work on Linux and older compilers
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |