mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 21:49:06 +02:00
* added support and simplified the handling of results in create_functype_common for reference types
This commit is contained in:
parent
60cde554fd
commit
bebe53ef9f
@ -264,16 +264,7 @@ implementation
|
|||||||
begin
|
begin
|
||||||
if not defToWasmBasic(pd.returndef,bt) then
|
if not defToWasmBasic(pd.returndef,bt) then
|
||||||
bt:=wbt_i32;
|
bt:=wbt_i32;
|
||||||
case bt of
|
result.add_result(bt);
|
||||||
wbt_i64:
|
|
||||||
result.add_result(wbt_i64);
|
|
||||||
wbt_f32:
|
|
||||||
result.add_result(wbt_f32);
|
|
||||||
wbt_f64:
|
|
||||||
result.add_result(wbt_f64);
|
|
||||||
else
|
|
||||||
result.add_result(wbt_i32);
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user