Pārlūkot izejas kodu

* optimization in thlcgwasm.resize_stack_int_val to avoid some redundant conversions

Nikolay Nikolov 2 nedēļas atpakaļ
vecāks
revīzija
12bfa69736
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      compiler/wasm32/hlcgcpu.pas

+ 1 - 1
compiler/wasm32/hlcgcpu.pas

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