From 2af2eb28da63f4a3f5c0877f7bc9eb7cedf5db12 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 12 Sep 2008 11:30:14 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ regenc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 389f1714c7..2992c1ff5f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 12 20:28:59 2008 Tanaka Akira + + * regenc.c (onigenc_single_byte_code_to_mbc): follow OnigEncoding + change. + Fri Sep 12 20:00:22 2008 Yusuke Endoh * regparse.c (parse_exp): fix resource leak. diff --git a/regenc.c b/regenc.c index 5afa1807b9..935e8d33d1 100644 --- a/regenc.c +++ b/regenc.c @@ -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; }