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
@ -431,7 +431,7 @@ onigenc_unicode_apply_all_case_fold(OnigCaseFoldType flag,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define CodePointListValidP(x) (OnigCodePointCount((x)->n) < numberof((x)->code))
|
#define CodePointListValidP(x) (OnigCodePointCount((x)->n) <= numberof((x)->code))
|
||||||
|
|
||||||
extern int
|
extern int
|
||||||
onigenc_unicode_get_case_fold_codes_by_str(OnigEncoding enc,
|
onigenc_unicode_get_case_fold_codes_by_str(OnigEncoding enc,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user