Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix escape_json() compilation error due to type limits check
Compilation failed on arm64 with error: comparison is always true due to limited range of data type [-Werror=type-limits] for if (0x0 <= *c && *c <= 0x1f) This was because char is unsigned on arm64 and thus always greater than zero. Fixed by using std::iscntrl() instead of explicit range check. This adds also backspace into set of escaped characters.
- Loading branch information