We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1dfafef + f595694 commit f936df5Copy full SHA for f936df5
Development/third_party/jwt-cpp/base.h
@@ -93,7 +93,7 @@ namespace jwt {
93
auto itr = std::find_if(alphabet.cbegin(), alphabet.cend(), [symbol](char c) { return c == symbol; });
94
if (itr == alphabet.cend()) { throw std::runtime_error("Invalid input: not within alphabet"); }
95
96
- return std::distance(alphabet.cbegin(), itr);
+ return static_cast<uint32_t>(std::distance(alphabet.cbegin(), itr));
97
}
98
} // namespace alphabet
99
0 commit comments