Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
garethsb authored Mar 18, 2024
1 parent fcac4d2 commit f595694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Development/third_party/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 f595694

Please sign in to comment.