Skip to content

Commit 364a557

Browse files
authored
Fix MSVC 32bit compiler warning (#331)
1 parent 3e029c7 commit 364a557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/jwt-cpp/base.h

Lines changed: 1 addition & 1 deletion
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)