Skip to content

Commit

Permalink
Merge pull request #380 from garethsb/patch-5
Browse files Browse the repository at this point in the history
Fix compiler warning
This patch will be in the next jwt-cpp release.
  • Loading branch information
lo-simon authored Mar 18, 2024
2 parents 1dfafef + f595694 commit f936df5
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 f936df5

Please sign in to comment.