@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | [$numEccCodewords, $eccBlocks] = $this->version->getRSBlocks($this->eccLevel); |
77 | 77 | |
78 | 78 | // Now establish DataBlocks of the appropriate size and number of data codewords |
79 | - $result = [];//new DataBlock[$totalBlocks]; |
|
79 | + $result = []; //new DataBlock[$totalBlocks]; |
|
80 | 80 | $numResultBlocks = 0; |
81 | 81 | |
82 | 82 | foreach($eccBlocks as [$numEccBlocks, $eccPerBlock]){ |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | // Above should work but fails on some Apple and Linux JDKs due to a Hotspot bug. |
301 | 301 | // Below is a funny-looking workaround from Steven Parkes |
302 | 302 | $term = GF256::multiply($errorLocations[$j], $xiInverse); |
303 | - $denominator = GF256::multiply($denominator, ((($term & 0x1) === 0) ? ($term | 1) : ($term & ~1))); |
|
303 | + $denominator = GF256::multiply($denominator, ((($term & 0x1) === 0) ? ($term|1) : ($term & ~1))); |
|
304 | 304 | } |
305 | 305 | } |
306 | 306 |