Fix for 64-bit PHP

This commit is contained in:
Shoghi Cervantes Pueyo 2012-12-19 19:34:22 +01:00
parent 28c62be43e
commit 8918c3c2c8

View File

@ -62,7 +62,7 @@ class Java_String{
if($h === 0 and $this->count > 0){
for($i = 0; $i < $this->count; ++$i){
$h = (($h << 5) - $h) + ord($this->charAt($i));
$h = $h & $h;
$h = $h & 0xFFFFFFFF;
$this->hash = $h;
}
$this->hash = $h;