mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-06-02 08:30:52 +00:00
BinaryField: fix issue with negate
This commit is contained in:
parent
c53ca28b25
commit
44a56b8a1f
|
@ -444,7 +444,7 @@ class Integer extends Base
|
|||
{
|
||||
$x = str_pad($this->value, strlen(static::$modulo[$this->instanceID]), "\0", STR_PAD_LEFT);
|
||||
|
||||
return new static($x ^ static::$modulo[$this->instanceID]);
|
||||
return new static($this->instanceID, $x ^ static::$modulo[$this->instanceID]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user