Skip to content

Commit a028350

Browse files
committed
Revert "Pretty sure ord() is faster than pack('C', <int>);"
This reverts commit 951d591.
1 parent 5063755 commit a028350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GMPService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function decode($base58)
139139
$output = '';
140140
while (gmp_cmp($decimal, 0) > 0) {
141141
list($decimal, $byte) = gmp_div_qr($decimal, 256);
142-
$output = ord(gmp_intval($byte)) . $output;
142+
$output = pack('C', gmp_intval($byte)) . $output;
143143
}
144144

145145
// Now we need to add leading zeros

0 commit comments

Comments
 (0)