mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
Removed not necessary code from Utils::readInt() and Utils::readLInt()
This commit is contained in:
@@ -705,10 +705,6 @@ class Utils{
|
|||||||
|
|
||||||
public static function readInt($str){
|
public static function readInt($str){
|
||||||
list(, $unpacked) = @unpack("N", $str);
|
list(, $unpacked) = @unpack("N", $str);
|
||||||
if($unpacked > 2147483647){
|
|
||||||
$unpacked -= 4294967296;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (int) $unpacked;
|
return (int) $unpacked;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -718,10 +714,6 @@ class Utils{
|
|||||||
|
|
||||||
public static function readLInt($str){
|
public static function readLInt($str){
|
||||||
list(, $unpacked) = @unpack("V", $str);
|
list(, $unpacked) = @unpack("V", $str);
|
||||||
if($unpacked >= 2147483648){
|
|
||||||
$unpacked -= 4294967296;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (int) $unpacked;
|
return (int) $unpacked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user