aboutsummaryrefslogtreecommitdiff
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 04df21e..a57bfbb 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 */