Skip to content

Commit e5863c9

Browse files
committed
Fix one more Implicit conversion from float
1 parent fd71310 commit e5863c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Common/HybridBinarizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ private static function thresholdBlock(
266266
for ($y = 0, $offset = $yoffset * $stride + $xoffset; $y < self::$BLOCK_SIZE; $y++, $offset += $stride) {
267267
for ($x = 0; $x < self::$BLOCK_SIZE; $x++) {
268268
// Comparison needs to be <= so that black == 0 pixels are black even if the threshold is 0.
269-
if (($luminances[(int)round($offset + $x)] & 0xFF) <= $threshold) {
269+
if ((((int)$luminances[(int)round($offset + $x)]) & 0xFF) <= $threshold) {
270270
$matrix->set($xoffset + $x, $yoffset + $y);
271271
}
272272
}

0 commit comments

Comments
 (0)