https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107641
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:2a193e9df82917eaf440a20f99a3febe91dcb5fe commit r13-3927-g2a193e9df82917eaf440a20f99a3febe91dcb5fe Author: Jakub Jelinek <ja...@redhat.com> Date: Sat Nov 12 09:47:50 2022 +0100 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 <ja...@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.