Remove redundant test.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 6 May 2012 17:12:27 +0000 (19:12 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 6 May 2012 17:12:27 +0000 (19:12 +0200)
The loop condition in print_stringrep() tests the same.

ast.c

diff --git a/ast.c b/ast.c
index ad7bab9..1e0ff3f 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -261,9 +261,9 @@ static void print_literal(const literal_expression_t *literal)
        case EXPR_LITERAL_INTEGER_OCTAL:
        case EXPR_LITERAL_FLOATINGPOINT:
                print_stringrep(&literal->value);
-               if (literal->suffix.size > 0)
-                       print_stringrep(&literal->suffix);
+               print_stringrep(&literal->suffix);
                return;
+
        case EXPR_LITERAL_WIDE_CHARACTER:
                print_char('L');
                /* FALLTHROUGH */