diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/writer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c index 5b896f94..b0e61cb1 100644 --- a/src/writer.c +++ b/src/writer.c @@ -209,7 +209,7 @@ write_character(SerdWriter* writer, const uint8_t* utf8, size_t* size) return sink(utf8, *size, writer); } - if (c < 0xFFFF) { + if (c <= 0xFFFF) { snprintf(escape, sizeof(escape), "\\u%04X", c); return sink(escape, 6, writer); } else { |