Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r182676 - Fix -Wparentheses warning with GCC 5 in SaturatedArit…
…hmetic.h https://bugs.webkit.org/show_bug.cgi?id=143457 Reviewed by Benjamin Poulain. Tested by WTF.SaturatedArithmeticAddition and WTF.SaturatedArithmeticSubtraction. * wtf/SaturatedArithmetic.h: (signedAddOverflows): Use && instead of & to avoid triggering -Wparentheses in newer versions of GCC and Clang, and to improve the clarity of the function. (signedSubtractOverflows): Changed correspondingly, although there was no warning here.
- Loading branch information
1 parent
bde41a1
commit b82f1df
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters