Skip to content

Commit

Permalink
sep
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 26, 2023
1 parent c157955 commit 912a1dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/json5.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,10 @@ inline typename parser5<StringT>::u8char parser5<StringT>::peek(const StringIter
head <<= 1;
++len;
ch <<= 8;
ch += (uint8_t)(*(begin + len - 1));
auto sep = begin + len - 1;
if (sep < end) {
ch += (uint8_t)(*sep);
}
}
if (plen) {
*plen = len;
Expand Down

0 comments on commit 912a1dd

Please sign in to comment.