Skip to content

Commit

Permalink
Update Buffer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick authored May 22, 2022
1 parent 73ebb14 commit ec0cc01
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/GameQ/Buffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,6 @@ private static function extendBinaryString($input, $length = 4, $littleEndian =

private static function isLittleEndian()
{
$testint = 0x00FF;
$p = pack('S', $testint);
return $testint===current(unpack('v', $p));
return 0x00FF === current(unpack('v', pack('S', 0x00FF)));
}
}

0 comments on commit ec0cc01

Please sign in to comment.