From bce45c481ad111fa6217257beef74f1a1e39922e Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Mon, 24 Dec 2007 15:14:07 +0000 Subject: [PATCH] Avoid the 64bit dragons. Fixes #3780 props nbachiyski. git-svn-id: https://develop.svn.wordpress.org/trunk@6488 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/gettext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/gettext.php b/wp-includes/gettext.php index 72558ccf70..5b78127c00 100644 --- a/wp-includes/gettext.php +++ b/wp-includes/gettext.php @@ -114,7 +114,7 @@ class gettext_reader { $this->STREAM = $Reader; $magic = $this->readint(); - if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms + if ($magic == $MAGIC1 || $magic == $MAGIC3) { // to make sure it works for 64-bit platforms $this->BYTEORDER = 0; } elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) { $this->BYTEORDER = 1;