Skip to content

Commit

Permalink
* regenc.c (onigenc_single_byte_code_to_mbc): follow OnigEncoding
Browse files Browse the repository at this point in the history
  change.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Sep 12, 2008
1 parent eca8de6 commit 2af2eb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion regenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2af2eb2

Please sign in to comment.