Update Utils.php

This commit is contained in:
ArkQuark 2022-06-19 23:54:17 +03:00 • committed by GitHub
parent d7bfd96739
commit e6bce73cc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -602,10 +602,10 @@ class Utils{
public static function writeLong($value){
$x = "";
if(strval($value)[0] === "-"){
if(strval($value[0]) === "-"){
$negative = true;
$value = bcadd($value, "1");
if(strval($value)[0] === "-"){
if(strval($value[0]) === "-"){
$value = substr($value, 1);
}
}else{