mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
more small changes
This commit is contained in:
parent
ac552afedc
commit
3f40c4f9be
3 changed files with 9 additions and 4 deletions
|
|
@ -638,6 +638,7 @@ class Utils{
|
|||
}
|
||||
|
||||
public static function readInt($str){
|
||||
if(strlen($str) <= 0) return;
|
||||
if(PHP_INT_SIZE === 8){
|
||||
return @unpack("N", $str)[1] << 32 >> 32;
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue