mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
unicode.c: off-by-one error
* enc/unicode.c (CodePointListValidP): fix off-by-one error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d48f923648
commit
8b4448e2e1
1 changed files with 1 additions and 1 deletions
|
@ -431,7 +431,7 @@ onigenc_unicode_apply_all_case_fold(OnigCaseFoldType flag,
|
|||
return 0;
|
||||
}
|
||||
|
||||
#define CodePointListValidP(x) (OnigCodePointCount((x)->n) < numberof((x)->code))
|
||||
#define CodePointListValidP(x) (OnigCodePointCount((x)->n) <= numberof((x)->code))
|
||||
|
||||
extern int
|
||||
onigenc_unicode_get_case_fold_codes_by_str(OnigEncoding enc,
|
||||
|
|
Loading…
Add table
Reference in a new issue