From: Collin Funk Date: Mon, 26 Jan 2026 02:52:34 +0000 (-0800) Subject: posix: avoid a cast in regex syntax bit definitions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcbd6736005876dadd3d4751cad509568bc4bf28;p=thirdparty%2Fglibc.git posix: avoid a cast in regex syntax bit definitions The cast doesn't have any benefit over using a UL suffix and prevents the macro from being used in preprocessor directives. Reviewed-by: Arjun Shankar --- diff --git a/posix/regex.h b/posix/regex.h index 192d5bf2a3..2d8392cf84 100644 --- a/posix/regex.h +++ b/posix/regex.h @@ -74,7 +74,7 @@ typedef unsigned long int reg_syntax_t; #ifdef __USE_GNU /* If this bit is not set, then \ inside a bracket expression is literal. If set, then such a \ quotes the following character. */ -# define RE_BACKSLASH_ESCAPE_IN_LISTS ((unsigned long int) 1) +# define RE_BACKSLASH_ESCAPE_IN_LISTS 1ul /* If this bit is not set, then + and ? are operators, and \+ and \? are literals.