mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 04:07:58 +00:00
Remove a direct call of rb_raise in Onigmo
This commit is contained in:
parent
aaf47cca03
commit
f34297604f
Notes:
git
2026-01-12 12:35:28 +00:00
4
regenc.c
4
regenc.c
@ -651,11 +651,7 @@ extern int
|
||||
onigenc_single_byte_code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc ARG_UNUSED)
|
||||
{
|
||||
if (code > 0xff) {
|
||||
#ifdef RUBY
|
||||
rb_raise(rb_eRangeError, "%u out of char range", code);
|
||||
#else
|
||||
return ONIGERR_INVALID_CODE_POINT_VALUE;
|
||||
#endif
|
||||
}
|
||||
*buf = (UChar )(code & 0xff);
|
||||
return 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user