Commit a63cf7f8 authored by Alex Ne's avatar Alex Ne

fix

parent 8376f49f
...@@ -12,7 +12,7 @@ trait BcDecHex { ...@@ -12,7 +12,7 @@ trait BcDecHex {
if ($remain == 0) { if ($remain == 0) {
return dechex($last); return dechex($last);
} else { } else {
return bcdechex($remain) . dechex($last); return $this->bcdechex($remain) . dechex($last);
} }
} }
} }
......
...@@ -11,7 +11,7 @@ trait BcHexDec { ...@@ -11,7 +11,7 @@ trait BcHexDec {
} else { } else {
$remain = substr($hex, 0, -1); $remain = substr($hex, 0, -1);
$last = substr($hex, -1); $last = substr($hex, -1);
return bcadd(bcmul(16, bchexdec($remain)), hexdec($last)); return bcadd(bcmul(16, $this->bchexdec($remain)), hexdec($last));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment