Selaa lähdekoodia

* use break instead of classically breaking out of the loop
* fixes #40435

marcoonthegit 2 vuotta sitten
vanhempi
commit
f8ba9e4760
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      packages/fcl-hash/src/fpsha512.pp

+ 1 - 1
packages/fcl-hash/src/fpsha512.pp

@@ -229,7 +229,7 @@ begin
     begin
       Move(PBuf^, Buffer[Index], Size);
       Inc(Self.Index, Size);
-      Size := 0;
+      Break;
     end;
   end;
 end;