explicit cast to int, it's some compatibility shit;(~)
This commit is contained in:
@@ -565,7 +565,7 @@ function checkSubmitOnce($action, $is_fatal = true)
|
||||
function setBit(&$string, $position, $value)
|
||||
{
|
||||
// Get the character position of the character carying the bit.
|
||||
$charPos = floor($position / 8);
|
||||
$charPos = (int) floor($position / 8);
|
||||
|
||||
// Get the bit number of the character.
|
||||
$bitPos = $position % 8;
|
||||
@@ -585,7 +585,7 @@ function setBit(&$string, $position, $value)
|
||||
function getBit(&$string, $position)
|
||||
{
|
||||
// Get the position of the character this bit is in.
|
||||
$charPos = floor($position / 8);
|
||||
$charPos = (int) floor($position / 8);
|
||||
|
||||
// If the string isn't even that long, obviously it's 0/false.
|
||||
if (strlen($string) < $charPos + 1)
|
||||
|
||||
Reference in New Issue
Block a user