about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--posix/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regex.c b/posix/regex.c
index 04df21e308..a57bfbb138 100644
--- a/posix/regex.c
+++ b/posix/regex.c
@@ -269,7 +269,7 @@ init_syntax_once ()
 
 # endif /* not SYNTAX_TABLE */
 
-# define SYNTAX(c) re_syntax_table[((c) & 0xFF)]
+# define SYNTAX(c) re_syntax_table[(unsigned char) c]
 
 #endif /* emacs */