head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.08.10.21.41.35; author wiz; state Exp; branches; next ; commitid 9JHloFc9ZlojD8RG; desc @@ 1.1 log @lang/gcc16: import gcc16-16.1.0 The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C, Fortran, and Go. @ text @$NetBSD: patch-libquadmath_strtod_strtod__l.c,v 1.1 2025/07/14 17:44:53 wiz Exp $ Fix -Werror=char-subscripts. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95178 --- libquadmath/strtod/strtod_l.c.orig 2020-05-07 10:50:02.000000000 +0000 +++ libquadmath/strtod/strtod_l.c @@@@ -57,10 +57,10 @@@@ # define STRING_TYPE char # define CHAR_TYPE char # define L_(Ch) Ch -# define ISSPACE(Ch) isspace (Ch) -# define ISDIGIT(Ch) isdigit (Ch) -# define ISXDIGIT(Ch) isxdigit (Ch) -# define TOLOWER(Ch) tolower (Ch) +# define ISSPACE(Ch) isspace ((unsigned char) Ch) +# define ISDIGIT(Ch) isdigit ((unsigned char) Ch) +# define ISXDIGIT(Ch) isxdigit ((unsigned char) Ch) +# define TOLOWER(Ch) tolower ((unsigned char) Ch) # define TOLOWER_C(Ch) \ ({__typeof(Ch) __tlc = (Ch); \ (__tlc >= 'A' && __tlc <= 'Z') ? __tlc - 'A' + 'a' : __tlc; }) @