Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into feature/math-biginteger
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Adapter/PythonPickle.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,11 @@ protected function _writeGet($id)
$this->_pickle .= self::OP_BINGET . chr($id);
} else {
// LONG_BINGET + pack("<i", i)
$idBin = pack('l', $id);
$bin = pack('l', $id);
if (self::$_isLittleEndian === false) {
$idBin = strrev($idBin);
$bin = strrev($bin);
}
$this->_pickle .= self::OP_LONG_BINGET . $idBin;
$this->_pickle .= self::OP_LONG_BINGET . $bin;
}
} else {
$this->_pickle .= self::OP_GET . $id . "\r\n";
Expand All @@ -318,11 +318,11 @@ protected function _writePut($id)
$this->_pickle .= self::OP_BINPUT . chr($id);
} else {
// LONG_BINPUT + pack("<i", i)
$idBin = pack('l', $id);
$bin = pack('l', $id);
if (self::$_isLittleEndian === false) {
$idBin = strrev($idBin);
$bin = strrev($bin);
}
$this->_pickle .= self::OP_LONG_BINPUT . $idBin;
$this->_pickle .= self::OP_LONG_BINPUT . $bin;
}
} else {
$this->_pickle .= self::OP_PUT . $id . "\r\n";
Expand Down

0 comments on commit 8838d57

Please sign in to comment.