aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-decl.cc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2022-11-12 09:47:50 +0100
committerJakub Jelinek <jakub@redhat.com>2022-11-12 09:50:04 +0100
commit2a193e9df82917eaf440a20f99a3febe91dcb5fe (patch)
treee9ac1a141f6268092539df557d82452c1558597e /gcc/c/c-decl.cc
parentd4c2f1d376da6fc3f3c30a9d3160e43c95399343 (diff)
downloadgcc-2a193e9df82917eaf440a20f99a3febe91dcb5fe.zip
gcc-2a193e9df82917eaf440a20f99a3febe91dcb5fe.tar.gz
gcc-2a193e9df82917eaf440a20f99a3febe91dcb5fe.tar.bz2
libgomp: Fix up build on mingw [PR107641]
Pointers should be first casted to intptr_t/uintptr_t before casting them to another integral type to avoid warnings. Furthermore, the function has code like else if (upper <= UINT_MAX) something; else something_else; so it seems using unsigned type for upper where upper <= UINT_MAX is always true is not intended. 2022-11-12 Jakub Jelinek <jakub@redhat.com> PR libgomp/107641 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than unsigned long. Change type of upper from unsigned to unsigned long.
Diffstat (limited to 'gcc/c/c-decl.cc')
0 files changed, 0 insertions, 0 deletions