Skip to content

Commit

Permalink
Fix MSVC 32bit compiler warning (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
garethsb authored Feb 17, 2024
1 parent 3e029c7 commit 364a557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/jwt-cpp/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ namespace jwt {
auto itr = std::find_if(alphabet.cbegin(), alphabet.cend(), [symbol](char c) { return c == symbol; });
if (itr == alphabet.cend()) { throw std::runtime_error("Invalid input: not within alphabet"); }

return std::distance(alphabet.cbegin(), itr);
return static_cast<uint32_t>(std::distance(alphabet.cbegin(), itr));
}
} // namespace alphabet

Expand Down

0 comments on commit 364a557

Please sign in to comment.