From 168122ca7cfd92aa8b3caea9b29e3e249eadc337 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 4 May 2024 10:31:17 -0300 Subject: [PATCH] fix --- vlib/v/gen/c/cgen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index daceeec92768f5..14dbda1aa3b6db 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -4901,7 +4901,7 @@ fn (mut g Gen) ident(node ast.Ident) { g.write(g.get_ternary_name(name)) if is_auto_heap { g.write('))') - if is_option { + if is_option && node.or_expr.kind != .absent { g.write('.data') } }