Skip to content

Commit

Permalink
Regression, breaks PHP < 5.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Jun 9, 2017
1 parent 78cb755 commit 3c6b3b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Core/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c6b3b7

Please sign in to comment.