long -> int64_t
This commit is contained in:
@@ -67,7 +67,7 @@ public:
|
|||||||
|
|
||||||
Fp_model() {};
|
Fp_model() {};
|
||||||
Fp_model(const bigint<n> &b);
|
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);
|
void set_uint64(const uint64_t x);
|
||||||
|
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ Fp_model<n,modulus>::Fp_model(const bigint<n> &b)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<mp_size_t n, const bigint<n>& modulus>
|
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)
|
if (is_unsigned || x >= 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user