mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fixed a warning that could appear when using readLong
This commit is contained in:
parent
20767a883f
commit
437576a981
1 changed files with 1 additions and 1 deletions
|
|
@ -637,7 +637,7 @@ class Utils{
|
|||
}
|
||||
|
||||
public static function readLong($x, $signed = true){
|
||||
return unpack("J", $x)[1]; //signed is useless since number cant be more than 2^63-1 in php
|
||||
return @unpack("J", $x)[1]; //signed is useless since number cant be more than 2^63-1 in php
|
||||
}
|
||||
|
||||
public static function writeLLong($value){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue