From: Christoph Mallon Date: Wed, 19 Nov 2008 22:11:28 +0000 (+0000) Subject: Simplify printing suffix of constants. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e23f51196d447061b8411ba2b3fc231043f6d9c9;p=cparser Simplify printing suffix of constants. [r23836] --- diff --git a/ast.c b/ast.c index 7a41eac..7f7ed73 100644 --- 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); } /**