about summary refs log tree commit diff
path: root/posix/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/regex.c')
-rw-r--r--posix/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regex.c b/posix/regex.c
index a57bfbb138..34b1d28fb0 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[(unsigned char) c]
+# define SYNTAX(c) re_syntax_table[(unsigned char) (c)]
 
 #endif /* emacs */