Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/FontLib/BinaryStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,13 @@ public function write($data, $length = null) {
}

public function readUInt8() {
return ord($this->read(1));
$uint8 = $this->read(1);

if ($uint8 === '') {
$uint8 = '0';
Comment thread
bsweeney marked this conversation as resolved.
Outdated
}

return ord($uint8);
}

public function readUInt8Many($count) {
Expand Down