diff options
author | Peter Powell <petpow@saberuk.com> | 2017-11-17 00:02:03 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-11-17 15:33:01 +0000 |
commit | 36040be2952186d56a6646ee7d972aaafdd4e31a (patch) | |
tree | 72be7108a94dd6bd0ea2842c53ba8890c44d12d8 /include/convto.h | |
parent | 3b51dfb1d611a874c3f1138d1c1ec1bb8984334c (diff) |
Fix a ton of -Wsign-conversion warnings.
Diffstat (limited to 'include/convto.h')
-rw-r--r-- | include/convto.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/convto.h b/include/convto.h index eaf14f6dc..c306283fc 100644 --- a/include/convto.h +++ b/include/convto.h @@ -100,9 +100,9 @@ template<typename T> inline long ConvToInt(const T& in) return atol(tmp.str().c_str()); } -inline uint64_t ConvToUInt64(const std::string& in) +template<typename TOut> inline TOut ConvToNum(const std::string& in) { - uint64_t ret; + TOut ret; std::istringstream tmp(in); if (!(tmp >> ret)) return 0; |