fix pb if zero-size array

dev
MITSUNARI Shigeo 7 years ago
parent 626c574bf9
commit 4030fb3e05
  1. 1
      include/mcl/vint.hpp

@ -1080,6 +1080,7 @@ public:
isNeg_ = false;
if (size == 0) {
clear();
*pb = true;
return;
}
size_t unitSize = (sizeof(S) * size + sizeof(Unit) - 1) / sizeof(Unit);

Loading…
Cancel
Save