aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c
index 85d20deb..194d26dd 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -86,7 +86,7 @@ write_text(SerdWriter writer, TextContext ctx,
if ((in & 0x80) == 0) { // Starts with `0'
size = 1;
c = in & 0x7F;
- if (in_range((in >= 0x20) && (in <= 0x7E)) { // Printable ASCII
+ if (in_range(in, 0x20, 0x7E)) { // Printable ASCII
writer->sink(&in, 1, writer->stream);
continue;
}