cast N to int

dev
MITSUNARI Shigeo 10 years ago
parent 86f5c64461
commit eb4d0b8dac
  1. 2
      src/fp.cpp

@ -187,7 +187,7 @@ static void initForMont(Op& op, const Unit *p)
fromRawGmp(op.RR, N, t); fromRawGmp(op.RR, N, t);
FpGenerator *fg = op.fg; FpGenerator *fg = op.fg;
if (fg == 0) return; if (fg == 0) return;
fg->init(p, N); fg->init(p, (int)N);
op.neg = Xbyak::CastTo<void2u>(fg->neg_); op.neg = Xbyak::CastTo<void2u>(fg->neg_);
op.add = Xbyak::CastTo<void3u>(fg->add_); op.add = Xbyak::CastTo<void3u>(fg->add_);

Loading…
Cancel
Save