1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* regenc.c (onigenc_single_byte_code_to_mbc): follow OnigEncoding

change.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-09-12 11:30:14 +00:00
parent eca8de632c
commit 2af2eb28da
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Sep 12 20:28:59 2008 Tanaka Akira <akr@fsij.org>
* regenc.c (onigenc_single_byte_code_to_mbc): follow OnigEncoding
change.
Fri Sep 12 20:00:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
* regparse.c (parse_exp): fix resource leak.

View file

@ -630,7 +630,7 @@ extern int
onigenc_single_byte_code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc ARG_UNUSED)
{
if (code > 0xff)
rb_raise(rb_eRangeError, "%"PRIdVALUE " out of char range", code);
rb_raise(rb_eRangeError, "%u out of char range", code);
*buf = (UChar )(code & 0xff);
return 1;
}