mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: parallelize (#10844)
This commit is contained in:
@@ -8,6 +8,7 @@ import v.parser
|
||||
import v.ast
|
||||
import v.pref
|
||||
import v.errors
|
||||
import strings
|
||||
|
||||
struct Context {
|
||||
mut:
|
||||
@@ -208,7 +209,7 @@ fn (t Tree) type_node(typ ast.Type) &Node {
|
||||
return create_null()
|
||||
} else {
|
||||
type_name := t.table.get_type_name(typ)
|
||||
return create_string(type_name)
|
||||
return create_string(strings.repeat(`&`, typ.nr_muls()) + type_name)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user