浏览代码

* 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 年之前
父节点
当前提交
ad66a19666
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;