We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85b97ea + 98d8980 commit debe860Copy full SHA for debe860
1 file changed
src/Buffertools/Types/VarInt.php
@@ -65,7 +65,7 @@ public function write($integer): string
65
public function read(Parser $parser)
66
{
67
$byte = unpack("C", $parser->readBytes(1)->getBinary())[1];
68
- if (gmp_init($byte) < 0xfd) {
+ if ($byte < 0xfd) {
69
return $byte;
70
}
71
0 commit comments