diff options
author | yui-knk <[email protected]> | 2024-02-10 14:04:38 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-02-10 18:58:42 +0900 |
commit | fdd92c2d61cc8eb86b187d8f116ed640c959a62c () | |
tree | 3f5775842ab89f7b3aebf664277d6b4efeaf3074 | |
parent | 6cafbd35d970f898eebc8c2d7b6f79fb4f79308c (diff) |
Fix the variable to be checked
It should check the result of `rb_parser_search_nonascii`.
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2265,7 +2265,7 @@ rb_parser_coderange_scan(struct parser_params *p, const char *ptr, long len, rb_ if (enc == rb_ascii8bit_encoding()) { /* enc is ASCII-8BIT. ASCII-8BIT string never be broken. */ ptr = rb_parser_search_nonascii(ptr, e); - return p ? RB_PARSER_ENC_CODERANGE_VALID : RB_PARSER_ENC_CODERANGE_7BIT; } /* parser string encoding is always asciicompat */ |