diff --git a/src/Core/Util.php b/src/Core/Util.php index cb3e2716..1cb56125 100644 --- a/src/Core/Util.php +++ b/src/Core/Util.php @@ -167,8 +167,7 @@ public static function hashEquals($left, $right) $d |= self::chrToInt($left[$i]) ^ self::chrToInt($right[$i]); } - /* branch-free variant of === 0 */ - if (-(1 & (($d - 1) >> 8))) { + if ($d !== 0) { return false; } return $left === $right;