1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: fix for msvc

This commit is contained in:
Delyan Angelov 2020-04-24 18:44:25 +03:00
parent c6a829ce82
commit f6f204387d

View File

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