Skip to content

Commit

Permalink
lib update => 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan committed Jul 9, 2018
1 parent fe11724 commit cda9bb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Util/UnsignedInt64.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function addOne()

function plus(UnsignedInt64 $oWord)
{
$c = new UnsignedInt64(0, 0);
$c = UInt64Pool::getObject()->setHiLo(0, 0);
// var lowest, lowMid, highMid, highest; //four parts of the whole 64 bit number..
//need to add the respective parts from each number and the carry if on is present..
$this_h = $this->hi & 0xffffffff;
Expand All @@ -93,7 +93,7 @@ function plus(UnsignedInt64 $oWord)

function not()
{
return new UnsignedInt64(~$this->hi, ~$this->lo);
return UInt64Pool::getObject()->setHiLo(~$this->hi, ~$this->lo);
}

function one()
Expand Down Expand Up @@ -347,7 +347,7 @@ function rotateRight($bits)
{
return $this->rotateLeft(64 - $bits);
}
$c = new UnsignedInt64(0, 0);
$c = UInt64Pool::getObject()->setHiLo(0, 0);
if ($bits === 0)
{
$c->lo = $this->lo >> 0;
Expand Down

0 comments on commit cda9bb5

Please sign in to comment.