Skip to content

Commit f936df5

Browse files
authored
Merge pull request #380 from garethsb/patch-5
Fix compiler warning This patch will be in the next jwt-cpp release.
2 parents 1dfafef + f595694 commit f936df5

File tree

1 file changed

+1
-1
lines changed
  • Development/third_party/jwt-cpp

1 file changed

+1
-1
lines changed

Development/third_party/jwt-cpp/base.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ namespace jwt {
9393
auto itr = std::find_if(alphabet.cbegin(), alphabet.cend(), [symbol](char c) { return c == symbol; });
9494
if (itr == alphabet.cend()) { throw std::runtime_error("Invalid input: not within alphabet"); }
9595

96-
return std::distance(alphabet.cbegin(), itr);
96+
return static_cast<uint32_t>(std::distance(alphabet.cbegin(), itr));
9797
}
9898
} // namespace alphabet
9999

0 commit comments

Comments
 (0)