1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-11 00:29:36 +01:00

Fixed wrong use of new self(1);

This commit is contained in:
Sokolovskyy Roman 2017-08-03 09:26:46 +02:00
parent 7bffa6bb8f
commit de2e4662b0

View File

@ -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