diff options
author | Peter Powell <petpow@saberuk.com> | 2018-04-14 14:59:35 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-04-16 15:24:49 +0100 |
commit | 2d36fcb16ef3209fffbe9f4b600971a1edd2ae4b (patch) | |
tree | 4e8f371548bfbc844ad7db42b775db847b141636 /src/configparser.cpp | |
parent | ccab908f14804776aab4c6728710e89b4847130a (diff) |
Convert ConfigTag::getDuration to return an unsigned long.
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r-- | src/configparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp index 5feff013f..624f3aea6 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -496,13 +496,13 @@ long ConfigTag::getInt(const std::string &key, long def, long min, long max) return res; } -long ConfigTag::getDuration(const std::string& key, long def, long min, long max) +unsigned long ConfigTag::getDuration(const std::string& key, unsigned long def, unsigned long min, unsigned long max) { std::string duration; if (!readString(key, duration)) return def; - long ret = InspIRCd::Duration(duration); + unsigned long ret = InspIRCd::Duration(duration); CheckRange(tag, key, ret, def, min, max); return ret; } |