2
0
Эх сурвалжийг харах

* fixed 'not(boolean64)' for WebAssembly

Nikolay Nikolov 4 жил өмнө
parent
commit
188a21bbfd

+ 4 - 1
compiler/wasm32/hlcgcpu.pas

@@ -544,7 +544,10 @@ implementation
             { boolean not: =0? for boolean }
             { todo: should we also do this for cbool? }
             if (op=OP_NOT) and is_pasbool(size) then
-              list.concat(taicpu.op_none(a_i64_eqz))
+              begin
+                list.concat(taicpu.op_none(a_i64_eqz));
+                list.concat(taicpu.op_none(a_i64_extend_i32_u));
+              end
             else
               begin
                 if op=OP_NOT then