fn: fix & argument bug

pull/1523/head
Alexander Medvednikov 2019-08-08 10:46:01 +02:00
parent 5e7d3c6aa9
commit 5ea1c538b6
1 changed files with 3 additions and 1 deletions

View File

@ -877,7 +877,9 @@ fn (p mut Parser) fn_call_args(f mut Fn) *Fn {
// println('\ne:"$expected" got:"$got"') // println('\ne:"$expected" got:"$got"')
else if ! (expected == 'void*' && got == 'int') && else if ! (expected == 'void*' && got == 'int') &&
! (expected == 'byte*' && got.contains(']byte')) && ! (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" */') p.cgen.set_placeholder(ph, '& /*112 EXP:"$expected" GOT:"$got" */')
} }
} }