long -> int64_t

This commit is contained in:
WO 2018-09-01 00:37:57 +09:00
parent a7102acb7e
commit c1992b5834
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ public:
Fp_model() {};
Fp_model(const bigint<n> &b);
Fp_model(const long x, const bool is_unsigned=false);
Fp_model(const int64_t x, const bool is_unsigned=false);
void set_uint64(const uint64_t x);

View File

@ -194,7 +194,7 @@ Fp_model<n,modulus>::Fp_model(const bigint<n> &b)
}
template<mp_size_t n, const bigint<n>& modulus>
Fp_model<n,modulus>::Fp_model(const long x, const bool is_unsigned)
Fp_model<n,modulus>::Fp_model(const int64_t x, const bool is_unsigned)
{
if (is_unsigned || x >= 0)
{