Commit be73938d authored by Tony Wong's avatar Tony Wong Committed by Paul Yang

Change divideInt64ToInt32 to static (#3436)

divideInt64ToInt32 is called statically from protobuf/php/src/Google/Protobuf/Internal/CodedOutputStream.php
(the only reference)
This causes fatal error in PHP 7.1 (32-bit only because 64-bit doesn't use this function)
parent d32f5b4d
......@@ -38,7 +38,7 @@ use Google\Protobuf\Internal\MapField;
class GPBUtil
{
public function divideInt64ToInt32($value, &$high, &$low, $trim = false)
public static function divideInt64ToInt32($value, &$high, &$low, $trim = false)
{
$isNeg = (bccomp($value, 0) < 0);
if ($isNeg) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment