Skip to content

Instantly share code, notes, and snippets.

@apollo13
Created July 21, 2020 20:58
Show Gist options
  • Save apollo13/cdc6b6f28975237abbb2f09de5b98d8f to your computer and use it in GitHub Desktop.
Save apollo13/cdc6b6f28975237abbb2f09de5b98d8f to your computer and use it in GitHub Desktop.
source/fitz/load-jpeg.c:243:28: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
if (x_res <= 0 || x_res > INT_MAX || y_res <= 0 || y_res > INT_MAX)
~ ^~~~~~~
/usr/lib64/clang/10.0.0/include/limits.h:46:19: note: expanded from macro 'INT_MAX'
#define INT_MAX __INT_MAX__
^~~~~~~~~~~
<built-in>:37:21: note: expanded from here
#define __INT_MAX__ 2147483647
^~~~~~~~~~
source/fitz/load-jpeg.c:243:61: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
if (x_res <= 0 || x_res > INT_MAX || y_res <= 0 || y_res > INT_MAX)
~ ^~~~~~~
/usr/lib64/clang/10.0.0/include/limits.h:46:19: note: expanded from macro 'INT_MAX'
#define INT_MAX __INT_MAX__
^~~~~~~~~~~
<built-in>:37:21: note: expanded from here
#define __INT_MAX__ 2147483647
^~~~~~~~~~
thirdparty/jbig2dec/jbig2_arith.c:250:16: warning: result of '2 ^ 1' is 3; did you mean '1 << 1' (2)? [-Wxor-used-as-pow]
{0x3401, 2 ^ 1, 6 ^ 1},
~~^~~
1 << 1
thirdparty/jbig2dec/jbig2_arith.c:250:16: note: replace expression with '0x2 ^ 1' to silence this warning
thirdparty/jbig2dec/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},
~~~^~~
1e9
thirdparty/jbig2dec/jbig2_arith.c:258:17: note: replace expression with '0xA ^ 9' to silence this warning
thirdparty/openjpeg/src/lib/openjp2/j2k.c:6937:29: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
if (temp_size > INT_MAX) {
~ ^~~~~~~
/usr/lib64/clang/10.0.0/include/limits.h:46:19: note: expanded from macro 'INT_MAX'
#define INT_MAX __INT_MAX__
^~~~~~~~~~~
<built-in>:37:21: note: expanded from here
#define __INT_MAX__ 2147483647
^~~~~~~~~~
thirdparty/openjpeg/src/lib/openjp2/tcd.c:2249:35: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
if (l_value > INT_MAX) {
~ ^~~~~~~
/usr/lib64/clang/10.0.0/include/limits.h:46:19: note: expanded from macro 'INT_MAX'
#define INT_MAX __INT_MAX__
^~~~~~~~~~~
<built-in>:37:21: note: expanded from here
#define __INT_MAX__ 2147483647
^~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment