Browse Source

* Nano optimization. Fixes #40590

Michaël Van Canneyt 1 year ago
parent
commit
08b7881083
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-image/src/fpreadbmp.pp

+ 1 - 1
packages/fcl-image/src/fpreadbmp.pp

@@ -153,7 +153,7 @@ begin
     exit;
     exit;
   end;
   end;
 
 
-  while (Mask mod 2)=0 do { rightmost bit is 0 }
+  while (Mask and 1)=0 do { rightmost bit is 0 }
   begin
   begin
     inc(tmp);
     inc(tmp);
     Mask:= Mask shr 1;
     Mask:= Mask shr 1;