From 8918c3c2c83a02207b52e1ccd3fab7454f0c6aee Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 19 Dec 2012 19:34:22 +0100 Subject: [PATCH] Fix for 64-bit PHP --- classes/Java.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Java.class.php b/classes/Java.class.php index b7c9564bf..c17c8eba9 100644 --- a/classes/Java.class.php +++ b/classes/Java.class.php @@ -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;