1
0
Fork 0

fix compile warning about type signedness

This commit is contained in:
jsteemann 2019-09-18 14:19:57 +02:00
parent 76dd9e5031
commit 1ebcd2dfb2
1 changed files with 3 additions and 1 deletions

View File

@ -183,7 +183,9 @@ void V8PlatformFeature::validateOptions(std::shared_ptr<ProgramOptions> options)
}
if (0 < _v8MaxHeap) {
if (_v8MaxHeap > (std::numeric_limits<int>::max)()) {
// we have to compare against INT_MAX here, because the value is an int
// inside V8
if (_v8MaxHeap > static_cast<uint64_t>(std::numeric_limits<int>::max())) {
LOG_TOPIC("81a63", FATAL, arangodb::Logger::FIXME)
<< "value for '--javascript.v8-max-heap' exceeds maximum value "
<< (std::numeric_limits<int>::max)();