瀏覽代碼

* optimization in thlcgwasm.resize_stack_int_val to avoid some redundant conversions

Nikolay Nikolov 1 天之前
父節點
當前提交
12bfa69736
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/wasm32/hlcgcpu.pas

+ 1 - 1
compiler/wasm32/hlcgcpu.pas

@@ -2831,7 +2831,7 @@ implementation
                   internalerror(2021010302);
               end;
             end
-          else if tcgsize2size[fromcgsize]>=tcgsize2size[tocgsize] then
+          else if (tcgsize2size[fromcgsize]>=tcgsize2size[tocgsize]) and (fromcgsize<>tocgsize) then
             begin
               { truncate }
               case tocgsize of