mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-10 03:28:40 +02:00
* fixed OS_S8 to OS_16 conversion for WebAssembly. This fixes test/cg/tcnvint6
This commit is contained in:
parent
3258937d97
commit
cc2fa67dfa
@ -2361,7 +2361,11 @@ implementation
|
||||
OS_8:
|
||||
a_op_const_stack(list,OP_AND,s32inttype,255);
|
||||
OS_S8:
|
||||
list.concat(taicpu.op_none(a_i32_extend8_s));
|
||||
begin
|
||||
list.concat(taicpu.op_none(a_i32_extend8_s));
|
||||
if tocgsize=OS_16 then
|
||||
a_op_const_stack(list,OP_AND,s32inttype,65535);
|
||||
end;
|
||||
OS_16:
|
||||
a_op_const_stack(list,OP_AND,s32inttype,65535);
|
||||
OS_S16:
|
||||
|
Loading…
Reference in New Issue
Block a user