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

File gettext-64-without-bitwise-ops.diff, 0.6 kB (added by nbachiyski, 11 months ago)
  • wp-includes/gettext.php

    old new  
    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;