WordPress.org

Make WordPress Core

Ticket #3780: gettext-64-without-bitwise-ops.diff

File gettext-64-without-bitwise-ops.diff, 587 bytes (added by nbachiyski, 11 years ago)
  • wp-includes/gettext.php

     
    114114
    115115                $this->STREAM = $Reader;
    116116                $magic = $this->readint();
    117                 if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms
     117                if ($magic == $MAGIC1 || $magic == $MAGIC3) { // to make sure it works for 64-bit platforms
    118118                        $this->BYTEORDER = 0;
    119119                } elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {
    120120                        $this->BYTEORDER = 1;