Simplify printing suffix of constants.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 19 Nov 2008 22:11:28 +0000 (22:11 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 19 Nov 2008 22:11:28 +0000 (22:11 +0000)
[r23836]

ast.c

diff --git a/ast.c b/ast.c
index 7a41eac..7f7ed73 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -223,10 +223,9 @@ static void print_const(const const_expression_t *cnst)
                case ATOMIC_TYPE_FLOAT:       suffix = "F";   break;
                case ATOMIC_TYPE_LONG_DOUBLE: suffix = "L";   break;
 
-               default: suffix = NULL; break;
+               default: return;
        }
-       if (suffix != NULL)
-               fputs(suffix, out);
+       fputs(suffix, out);
 }
 
 /**