* fixed bug, introduced in 6ff566350c, due to

missing parenthesis
This commit is contained in:
Nikolay Nikolov 2023-06-11 09:01:07 +03:00
parent 64569df017
commit 3d55ac9d09

View File

@ -70,8 +70,8 @@ implementation
begin
pvs:=tparavarsym(procdefinition.paras[paranr]);
if is_wasm_reference_type(p.left.resultdef) and
(pvs.varspez in [vs_var,vs_constref]) or
((pvs.varspez=vs_const) and (pvs.vardef.typ=formaldef)) then
((pvs.varspez in [vs_var,vs_constref,vs_out]) or
((pvs.varspez=vs_const) and (pvs.vardef.typ=formaldef))) then
CGMessage(parser_e_wasm_ref_types_can_only_be_passed_by_value);
Inc(paranr);
p:=tcallparanode(tcallparanode(p).right);