Skip to content

Commit f342976

Browse files
committed
Remove a direct call of rb_raise in Onigmo
1 parent aaf47cc commit f342976

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

regenc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,11 +651,7 @@ extern int
651651
onigenc_single_byte_code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc ARG_UNUSED)
652652
{
653653
if (code > 0xff) {
654-
#ifdef RUBY
655-
rb_raise(rb_eRangeError, "%u out of char range", code);
656-
#else
657654
return ONIGERR_INVALID_CODE_POINT_VALUE;
658-
#endif
659655
}
660656
*buf = (UChar )(code & 0xff);
661657
return 1;

0 commit comments

Comments
 (0)