mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
compiler: prepare for moving compiler to vlib/vcompiler (stage 1)
* compiler: prepare for moving under vlib/vcompiler . * make: stabilize the Makefile (extract rules for freshly cloning vc and tccbin).
This commit is contained in:
parent
12eba4d311
commit
d3a206d6db
2 changed files with 13 additions and 7 deletions
|
@ -265,7 +265,7 @@ fn (p mut Parser) gen_method_call(receiver_type, ftyp string, cgen_name string,
|
|||
if ftyp == 'void*' {
|
||||
if receiver_type.starts_with('array_') {
|
||||
// array_int => int
|
||||
cast = receiver_type.all_after('_')
|
||||
cast = receiver_type.all_after('array_')
|
||||
cast = '*($cast*) '
|
||||
}else{
|
||||
cast = '(voidptr) '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue