explicit cast to int, it's some compatibility shit;(~)

This commit is contained in:
Aleksei Miheev
2014-01-05 13:09:02 +00:00
parent 58a12c4ccb
commit 390335dae1

View File

@@ -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)