Procházet zdrojové kódy

* optimization in thlcgwasm.resize_stack_int_val to avoid some redundant conversions

Nikolay Nikolov před 2 týdny
rodič
revize
12bfa69736
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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