Skip to content

Commit

Permalink
Merge pull request #26 from cngzhnp/cngzhnp/long_long_support_for_32bit
Browse files Browse the repository at this point in the history
Support long long type for IA32 architecture
  • Loading branch information
FlorianRappl authored Jul 26, 2021
2 parents 869cc71 + e60667d commit 223e6e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmdparser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,13 @@ namespace cli {
return std::stoull(elements[0], 0, numberBase);
}

static long long parse(const std::vector<std::string>& elements, const long long&, int numberBase = 0) {
if (elements.size() != 1)
throw std::bad_cast();

return std::stoll(elements[0], 0, numberBase);
}

static long parse(const std::vector<std::string>& elements, const long&, int numberBase = 0) {
if (elements.size() != 1)
throw std::bad_cast();
Expand Down

0 comments on commit 223e6e3

Please sign in to comment.