Get rid of unnecessary negation.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 11 Dec 2008 11:05:28 +0000 (11:05 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 11 Dec 2008 11:05:28 +0000 (11:05 +0000)
[r24517]

ast.c

diff --git a/ast.c b/ast.c
index f8ead47..5910085 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -304,10 +304,10 @@ static void print_quoted_wide_string(const wide_string_t *const wstr,
                        default: {
                                const unsigned tc = *c;
                                if (tc < 0x80U) {
-                                       if (!isprint(*c)) {
-                                               fprintf(out, "\\%03o", tc);
-                                       } else {
+                                       if (isprint(*c)) {
                                                fputc(*c, out);
+                                       } else {
+                                               fprintf(out, "\\%03o", tc);
                                        }
                                } else if (tc < 0x800) {
                                        fputc(0xC0 | (tc >> 6),   out);