Skip to content

Commit 96102a6

Browse files
authored
Merge pull request #24 from plumqqz/master
Change number compate to char compare
2 parents ff44d1a + 7b38267 commit 96102a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RLP.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function encode($inputs)
8080
$length = mb_strlen($input) / 2;
8181

8282
// first byte < 0x80
83-
if ($length === 1 && mb_substr($input, 0, 1) < 8) {
83+
if ($length === 1 && mb_substr($input, 0, 1) < '8') {
8484
return $input;
8585
}
8686
return $this->encodeLength($length, 128) . $input;

0 commit comments

Comments
 (0)