]> granicus.if.org Git - onig/commitdiff
refactoring
authorK.Kosako <kosako@sofnec.co.jp>
Thu, 10 Aug 2017 02:21:15 +0000 (11:21 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 10 Aug 2017 02:21:15 +0000 (11:21 +0900)
src/regint.h

index 1262866931120657fc7801893cf7df7bb3b545a1..0be0ac08adfacc9176e8dab9cb4abed289748d57 100644 (file)
@@ -285,9 +285,9 @@ typedef unsigned int  MemStatusType;
 #define IS_CODE_WORD_ASCII(enc,code) \
   (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_WORD(enc,code))
 #define IS_CODE_DIGIT_ASCII(enc, code) \
-  ((code) < 128 && ONIGENC_IS_CODE_DIGIT(enc,code))
+  (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_DIGIT(enc,code))
 #define IS_CODE_XDIGIT_ASCII(enc, code) \
-  ((code) < 128 && ONIGENC_IS_CODE_XDIGIT(enc,code))
+  (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_XDIGIT(enc,code))
 
 #define DIGITVAL(code)    ((code) - '0')
 #define ODIGITVAL(code)   DIGITVAL(code)