diff options
Diffstat (limited to 'src/regex.c')
| -rw-r--r-- | src/regex.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/regex.c b/src/regex.c index 240a91f2ba8..fb48765c96c 100644 --- a/src/regex.c +++ b/src/regex.c @@ -306,9 +306,7 @@ enum syntaxcode { Swhitespace = 0, Sword = 1, Ssymbol = 2 }; /* In Emacs, these are only used for single-byte characters. */ # define ISDIGIT(c) ((c) >= '0' && (c) <= '9') # define ISCNTRL(c) ((c) < ' ') -# define ISXDIGIT(c) (((c) >= '0' && (c) <= '9') \ - || ((c) >= 'a' && (c) <= 'f') \ - || ((c) >= 'A' && (c) <= 'F')) +# define ISXDIGIT(c) (0 <= char_hexdigit (c)) /* The rest must handle multibyte characters. */ |
