diff --git a/Sources/Security.php b/Sources/Security.php index ea1bc31..879482c 100644 --- a/Sources/Security.php +++ b/Sources/Security.php @@ -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)