Fix compile error

This commit is contained in:
Tatsuhiro Tsujikawa 2021-09-07 14:55:30 +09:00
parent 7ea57eaa18
commit 9d53a7e0a6
1 changed files with 1 additions and 1 deletions

View File

@ -2590,7 +2590,7 @@ int main(int argc, char **argv) {
<< std::endl; << std::endl;
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
if (n > 64_k) { if (static_cast<uint64_t>(n) > 64_k) {
std::cerr << "--max-udp-payload-size: must not exceed 65536" std::cerr << "--max-udp-payload-size: must not exceed 65536"
<< std::endl; << std::endl;
exit(EXIT_FAILURE); exit(EXIT_FAILURE);