Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As ucs4::char is unsigned, we don't need to compare against the min value of the type. Worse, we cast the (possibly signed) min value to ucs4::char, which on plenty of systems, results in 2^31, excluding all valid unicode codepoints. Fix by gfgtdf. Patch by iceiceice. (PR #189) Commit message by ai0867. Conflicts: src/serialization/unicode.cpp src/tests/test_util.cpp
- Loading branch information
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters