Merge branch 'release/3.4'

This commit is contained in:
Dylan K. Taylor 2018-11-22 16:49:30 +00:00
commit 507d47a6f5

View File

@ -103,10 +103,10 @@ class SubChunk implements SubChunkInterface{
$i >>= 1; $i >>= 1;
$shift = ($y & 1) << 2; $shift = ($y & 1) << 2;
$byte = ord($this->data{$i}); $oldPair = ord($this->data{$i});
$this->data{$i} = chr(($byte & ~(0xf << $shift)) | (($data & 0xf) << $shift)); $newPair = ($oldPair & ~(0xf << $shift)) | (($data & 0xf) << $shift);
if($newPair !== $oldPair){
if($this->data{$i} !== $byte){ $this->data{$i} = chr($newPair);
$changed = true; $changed = true;
} }
} }