int64_t(1<<63) is invalid

dev
MITSUNARI Shigeo 9 years ago
parent 85845c3c9b
commit 9aa0ac8f0e
  1. 1
      src/fp.cpp

@ -391,6 +391,7 @@ int64_t getInt64(bool *pb, fp::Block& b, const fp::Op& op)
if (isNegative) {
if (v <= c) { // include c
if (pb) *pb = true;
if (v == c) return int64_t(-1) << 63;
return int64_t(-v);
}
} else {

Loading…
Cancel
Save