diff options
Diffstat (limited to 'typedefs_cgen.c')
-rw-r--r-- | typedefs_cgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/typedefs_cgen.c b/typedefs_cgen.c index a068c74..49cd8ec 100644 --- a/typedefs_cgen.c +++ b/typedefs_cgen.c @@ -46,7 +46,7 @@ static bool typedefs_decl(CGenerator *g, Declaration *d) { cgen_nl(g); } } - if (d->flags & DECL_HAS_EXPR) + if ((d->flags & DECL_HAS_EXPR) && !(d->flags & DECL_IS_CONST)) if (!typedefs_expr(g, &d->expr)) return false; return true; |