Commit 456038e3 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Fix compile error with gcc

parent 9aa26970
......@@ -320,7 +320,8 @@ int parse_uint_with_unit(T *dest, const StringRef &opt,
return -1;
}
if (std::numeric_limits<T>::max() < n) {
if (static_cast<uint64_t>(std::numeric_limits<T>::max()) <
static_cast<uint64_t>(n)) {
LOG(ERROR) << opt
<< ": too large. The value should be less than or equal to "
<< std::numeric_limits<T>::max();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment