add FixedVec::value_type

update-fork
MITSUNARI Shigeo 5 years ago
parent cc1396f753
commit 8118e08dc2
  1. 1
      include/mcl/array.hpp
  2. 2
      include/mcl/gmp_util.hpp

@ -118,6 +118,7 @@ class FixedArray {
y = t;
}
public:
typedef T value_type;
FixedArray() : n_(0) {}
bool resize(size_t n)
{

@ -642,7 +642,7 @@ void getNAFwidth(bool *pb, Vec& naf, mpz_class x, size_t w)
x++;
v -= maxW;
}
naf.push(pb, v);
naf.push(pb, typename Vec::value_type(v));
if (!*pb) return;
zeroNum = w - 1;
}

Loading…
Cancel
Save