Fixes, structure

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-06 01:21:39 +01:00
parent c71801145e
commit fc63676bde
5 changed files with 37 additions and 37 deletions

View File

@ -337,7 +337,7 @@ class Utils{
public static function writeLong($value){
$long = new Math_BigInteger($value, -10);
return $long->toBytes(true);
return str_pad($long->toBytes(true), 8, "\x00", STR_PAD_LEFT);
}
}