Commit 24162899c99206167d8361c0bbb8b534bd0fe072

Authored by Jarryd Beck
1 parent ec7db35a

fix some types

Showing 1 changed file with 2 additions and 2 deletions
include/cxxopts.hpp
@@ -534,7 +534,7 @@ namespace cxxopts @@ -534,7 +534,7 @@ namespace cxxopts
534 constexpr auto umax = std::numeric_limits<US>::max(); 534 constexpr auto umax = std::numeric_limits<US>::max();
535 constexpr bool is_signed = std::numeric_limits<T>::is_signed; 535 constexpr bool is_signed = std::numeric_limits<T>::is_signed;
536 const bool negative = match.length(1) > 0; 536 const bool negative = match.length(1) > 0;
537 - const auto base = match.length(2) > 0 ? 16 : 10; 537 + const uint8_t base = match.length(2) > 0 ? 16 : 10;
538 538
539 auto value_match = match[3]; 539 auto value_match = match[3];
540 540
@@ -542,7 +542,7 @@ namespace cxxopts @@ -542,7 +542,7 @@ namespace cxxopts
542 542
543 for (auto iter = value_match.first; iter != value_match.second; ++iter) 543 for (auto iter = value_match.first; iter != value_match.second; ++iter)
544 { 544 {
545 - int digit = 0; 545 + size_t digit = 0;
546 546
547 if (*iter >= '0' && *iter <= '9') 547 if (*iter >= '0' && *iter <= '9')
548 { 548 {