The long data type is replaced with int64_t

This commit is contained in:
WO
2018-09-01 00:57:11 +09:00
parent c1992b5834
commit 3786db4fb9
13 changed files with 26 additions and 26 deletions

View File

@@ -105,7 +105,7 @@ template<mp_size_t n>
size_t bigint<n>::num_bits() const
{
/*
for (long i = max_bits(); i >= 0; --i)
for (int64_t i = max_bits(); i >= 0; --i)
{
if (this->test_bit(i))
{
@@ -115,7 +115,7 @@ size_t bigint<n>::num_bits() const
return 0;
*/
for (long i = n-1; i >= 0; --i)
for (int64_t i = n-1; i >= 0; --i)
{
mp_limb_t x = this->data[i];
if (x == 0)