From 24162899c99206167d8361c0bbb8b534bd0fe072 Mon Sep 17 00:00:00 2001 From: Jarryd Beck Date: Fri, 15 Dec 2017 08:52:02 +1100 Subject: [PATCH] fix some types --- include/cxxopts.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index c03539e..6a6a85f 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -534,7 +534,7 @@ namespace cxxopts constexpr auto umax = std::numeric_limits::max(); constexpr bool is_signed = std::numeric_limits::is_signed; const bool negative = match.length(1) > 0; - const auto base = match.length(2) > 0 ? 16 : 10; + const uint8_t base = match.length(2) > 0 ? 16 : 10; auto value_match = match[3]; @@ -542,7 +542,7 @@ namespace cxxopts for (auto iter = value_match.first; iter != value_match.second; ++iter) { - int digit = 0; + size_t digit = 0; if (*iter >= '0' && *iter <= '9') {