Skip to content

Commit debe860

Browse files
authored
Merge pull request #76 from afk11/skip-unnecessary-convert
skip unnecessary gmp_init
2 parents 85b97ea + 98d8980 commit debe860

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Buffertools/Types/VarInt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function write($integer): string
6565
public function read(Parser $parser)
6666
{
6767
$byte = unpack("C", $parser->readBytes(1)->getBinary())[1];
68-
if (gmp_init($byte) < 0xfd) {
68+
if ($byte < 0xfd) {
6969
return $byte;
7070
}
7171

0 commit comments

Comments
 (0)