-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jbig2dec: Work around exponentiation warning from clang.
clang complains like so: jbig2_arith.c:258:17: warning: result of '10 ^ 9' is 3; did you mean '1e9'? [-Wxor-used-as-pow] {0x3801, 10 ^ 9, 14 ^ 9}, But 10 ^ 9 is indeed meant to be xor, not exponentiation. The const values are identical to those in table E.1 in the JBIG2 spec. The workaround is to wrap everything in macros, adding extra parenthesis, which causes the compiler warning not to trip.
- Loading branch information
Showing
1 changed file
with
50 additions
and
47 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