Skip to content

Commit

Permalink
Update Varint.php
Browse files Browse the repository at this point in the history
  • Loading branch information
puklipo committed Dec 15, 2024
1 parent 3175817 commit aa6bf9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Support/Varint.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public static function decodeStream(StreamInterface $stream): int
{
$str = $stream->read(8);
$int = self::decode($str);
$len = strlen(self::encode($int));
$stream->seek($len - 8, SEEK_CUR);
$stream->seek(strlen(self::encode($int)) - 8, SEEK_CUR);

return $int;
}
Expand Down

0 comments on commit aa6bf9f

Please sign in to comment.