From 5ea1c538b66c99793517b04512321a15a7c6a9fb Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 8 Aug 2019 10:46:01 +0200 Subject: [PATCH] fn: fix & argument bug --- compiler/fn.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/fn.v b/compiler/fn.v index 4ce0f06cca..8e88105627 100644 --- a/compiler/fn.v +++ b/compiler/fn.v @@ -877,7 +877,9 @@ fn (p mut Parser) fn_call_args(f mut Fn) *Fn { // println('\ne:"$expected" got:"$got"') else if ! (expected == 'void*' && got == 'int') && ! (expected == 'byte*' && got.contains(']byte')) && - ! (expected == 'byte*' && got == 'string') { + ! (expected == 'byte*' && got == 'string') && + //! (expected == 'void*' && got == 'array_int') { + ! (expected == 'byte*' && got == 'byteptr') { p.cgen.set_placeholder(ph, '& /*112 EXP:"$expected" GOT:"$got" */') } }