Browse Source

* on second thought, and a byte typecast so that an expanded intrinsics doesn't loop over unnecessary bits.

git-svn-id: trunk@49162 -
marco 4 years ago
parent
commit
ad66a19666
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

@@ -149,7 +149,7 @@ begin
     inc(tmp);
     Mask:= Mask shr 1;
   end;
-  tmp:=tmp-(8-popcnt(Mask and $FF));
+  tmp:=tmp-(8-popcnt(byte(Mask and $FF)));
   Result:=tmp;
 end;