Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate some -Wabsolute-value compiler warnings
sizeField() returns a sqInt. sqInt is 64bits long on 64bits images. Taking abs(sqInt) will truncate the size to 32bits. That's probably benign because the size will rarely exceed 2^31, so we effectively truncate nothing. But we have a correct way to take absolute value of sqInt (SQABS) and long (labs) so let's just use them and eliminate the false positive warnings.
- Loading branch information
1 parent
034b14a
commit b2ed57a
Showing
1 changed file
with
5 additions
and
5 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