Browse Source

* fix for 7791, counter vars were unsigned and compared with x<0 and x>0 etc

git-svn-id: trunk@5355 -
marco 19 years ago
parent
commit
ddbbcb875e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fcl/image/fpwritepng.pp

+ 1 - 1
fcl/image/fpwritepng.pp

@@ -267,7 +267,7 @@ procedure TFPWriterPNG.DetermineHeader (var AHeader : THeaderChunk);
 var c : integer;
   function CountAlphas : integer;
   var none, half : boolean;
-      x,y : longword;
+      x,y : longint;  // warning, checks on <0 !
       p : integer;
       c : TFPColor;
       a : word;