Explorar o código

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

marcoonthegit %!s(int64=2) %!d(string=hai) anos
pai
achega
f8ba9e4760
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;