From 730ef96398918afc901c48ca1ce062984f901b27 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 11 Nov 2019 05:33:19 +0300 Subject: [PATCH] another tcc fix --- vlib/compiler/fn.v | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vlib/compiler/fn.v b/vlib/compiler/fn.v index 03872b670b..672b7b4431 100644 --- a/vlib/compiler/fn.v +++ b/vlib/compiler/fn.v @@ -1117,6 +1117,7 @@ fn (p mut Parser) fn_call_args(f mut Fn) { expr := p.cgen.cur_line[ph..] // TODO hack // If current expression is a func call, generate the array hack + $if !tinyc { if expr.contains('(') { //println('fn hack expr=$expr') p.cgen.set_placeholder(ph, '& /*113 e="$expected" g="$got"*/ ($got[]){') @@ -1124,6 +1125,9 @@ fn (p mut Parser) fn_call_args(f mut Fn) { } else { p.cgen.set_placeholder(ph, '& /*114*/') } + } $else { + p.cgen.set_placeholder(ph, '& /*114*/') + } } // println('\ne:"$expected" got:"$got"')