diff options
| author | YongDo-Hyun <froster12@naver.com> | 2025-12-27 13:07:05 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-27 19:57:09 +0300 |
| commit | 53fa78b3dbcddff3bac152c89d69621526bc2639 (patch) | |
| tree | ed286dc1ee961d066280d71a1aa7911b4d886872 /src/text/json_formatter.cpp | |
| parent | b6d496b1e83853cd272a8ffdea273c59bbf4b87c (diff) | |
| download | Project-Tick-53fa78b3dbcddff3bac152c89d69621526bc2639.tar.gz Project-Tick-53fa78b3dbcddff3bac152c89d69621526bc2639.zip | |
fix: simplify control character check in JSON formatting
Signed-off-by: YongDo-Hyun <froster12@naver.com>
Diffstat (limited to 'src/text/json_formatter.cpp')
| -rw-r--r-- | src/text/json_formatter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text/json_formatter.cpp b/src/text/json_formatter.cpp index 06a9c54f60..88f3a7c58e 100644 --- a/src/text/json_formatter.cpp +++ b/src/text/json_formatter.cpp @@ -215,7 +215,7 @@ namespace //anonymous case '\r': os << "\\r"; break; case '\t': os << "\\t"; break; default: - if (static_cast<unsigned char>(c) < 32 || c == 127) { + if (c < 32 || c == 127) { // Control characters, escape as \u00XX os << "\\u00" << std::hex << std::setw(2) << std::setfill('0') << static_cast<int>(c); } else { |
