Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
zofer1 authored Aug 17, 2023
2 parents 935d0b7 + ce1f9df commit 3b7aa11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/jwt-cpp/jwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include <algorithm>
#include <chrono>
#include <climits>
#include <cmath>
#include <cstring>
#include <functional>
Expand Down Expand Up @@ -3117,7 +3118,7 @@ namespace jwt {
std::string out;
out.reserve(wide.size());
for (wchar_t wc : wide) {
char mb[MB_CUR_MAX];
char mb[MB_LEN_MAX];
std::size_t n = std::wcrtomb(mb, wc, &state);
if (n != static_cast<std::size_t>(-1)) out.append(mb, n);
}
Expand Down

0 comments on commit 3b7aa11

Please sign in to comment.