mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 10:38:12 +01:00
Fixed wrong use of new self(1);
This commit is contained in:
parent
7bffa6bb8f
commit
de2e4662b0
@ -1314,7 +1314,7 @@ abstract class PHP extends Engine
|
|||||||
protected function powHelper(PHP $n)
|
protected function powHelper(PHP $n)
|
||||||
{
|
{
|
||||||
if ($n->compare(static::$zero) == 0) {
|
if ($n->compare(static::$zero) == 0) {
|
||||||
return new self(1);
|
return new static(1);
|
||||||
} // n^0 = 1
|
} // n^0 = 1
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user