cgen: fix for msvc

pull/4581/head
Delyan Angelov 2020-04-24 18:44:25 +03:00
parent c6a829ce82
commit f6f204387d
1 changed files with 2 additions and 2 deletions

View File

@ -2409,11 +2409,11 @@ fn (mut g Gen) string_inter_literal(node ast.StringInterLiteral) {
g.write(',0).str') g.write(',0).str')
} else if g.typ( node.expr_types[i] ).starts_with('Option') { } else if g.typ( node.expr_types[i] ).starts_with('Option') {
str_fn_name := 'Option_str' str_fn_name := 'Option_str'
g.write('${str_fn_name}((Option)') g.write('${str_fn_name}(*(Option*)&')
g.expr(expr) g.expr(expr)
g.write(')') g.write(')')
g.write('.len, ') g.write('.len, ')
g.write('${str_fn_name}((Option)') g.write('${str_fn_name}(*(Option*)&')
g.expr(expr) g.expr(expr)
g.write(').str') g.write(').str')
} else { } else {