Browse Source

:shower: force int because PHP8.1 hates this

codemasher 4 years ago
parent
commit
8df4a7a532
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Decoder/Binarizer.php

+ 1 - 1
src/Decoder/Binarizer.php

@@ -252,7 +252,7 @@ final class Binarizer{
 						// finish the rest of the rows quickly
 						for($yy++, $offset += $width; $yy < self::BLOCK_SIZE; $yy++, $offset += $width){
 							for($xx = 0; $xx < self::BLOCK_SIZE; $xx++){
-								$sum += $luminances[(int)($offset + $xx)] & 0xff;
+								$sum += (int)($luminances[(int)($offset + $xx)]) & 0xff;
 							}
 						}
 					}