mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-15 19:16:55 +00: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)
|
||||
{
|
||||
if ($n->compare(static::$zero) == 0) {
|
||||
return new self(1);
|
||||
return new static(1);
|
||||
} // n^0 = 1
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user