From d18952a06e8960f656354f9ced9c4ae7b1370d93 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 23 Mar 2014 01:50:15 +0100 Subject: [PATCH] Removed not necessary code from Utils::readInt() and Utils::readLInt() --- src/PocketMine/utils/Utils.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/PocketMine/utils/Utils.php b/src/PocketMine/utils/Utils.php index b405c54c7..93463d2c2 100644 --- a/src/PocketMine/utils/Utils.php +++ b/src/PocketMine/utils/Utils.php @@ -705,10 +705,6 @@ class Utils{ public static function readInt($str){ list(, $unpacked) = @unpack("N", $str); - if($unpacked > 2147483647){ - $unpacked -= 4294967296; - } - return (int) $unpacked; } @@ -718,10 +714,6 @@ class Utils{ public static function readLInt($str){ list(, $unpacked) = @unpack("V", $str); - if($unpacked >= 2147483648){ - $unpacked -= 4294967296; - } - return (int) $unpacked; }