Skip to content

Commit 98d8980

Browse files
author
Thomas Kerin
committed
skip unnecessary gmp_init
1 parent 85b97ea commit 98d8980

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)