diff options
Diffstat (limited to 'typedefs_cgen.c')
-rw-r--r-- | typedefs_cgen.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/typedefs_cgen.c b/typedefs_cgen.c index d6a3f5e..47122e0 100644 --- a/typedefs_cgen.c +++ b/typedefs_cgen.c @@ -17,9 +17,12 @@ static bool typedefs_expr(CGenerator *g, Expression *e) { return false; break; case EXPR_BINARY_OP: - if (!typedefs_expr(g, e->binary.lhs) - || !typedefs_expr(g, e->binary.rhs)) + if (!typedefs_expr(g, e->binary.lhs)) return false; + + if (e->binary.op != BINARY_DOT) + if (!typedefs_expr(g, e->binary.rhs)) + return false; break; case EXPR_CAST: if (!typedefs_expr(g, e->cast.expr)) |