diff options
Diffstat (limited to 'src/protocol/ArgParser.hxx')
-rw-r--r-- | src/protocol/ArgParser.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/protocol/ArgParser.hxx b/src/protocol/ArgParser.hxx index d71894771..221ffebe3 100644 --- a/src/protocol/ArgParser.hxx +++ b/src/protocol/ArgParser.hxx @@ -22,6 +22,8 @@ #include "check.h" +#include <limits> + #include <stdint.h> class Client; @@ -39,7 +41,7 @@ struct RangeArg { void SetAll() { start = 0; - end = unsigned(-1); + end = std::numeric_limits<unsigned>::max(); } }; |