BinaryField: fix issue with negate

This commit is contained in:
terrafrost 2019-01-07 08:06:10 -06:00
parent c53ca28b25
commit 44a56b8a1f

View File

@ -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]);
}
/**