diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-21 06:37:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-21 06:37:36 +0000 |
commit | a606038c6abf31740e38448a164f872d3c94c83f (patch) | |
tree | fa60eb976f79bba328a7ded0d1f07de773dd206e /enc | |
parent | 7fa73456098b5554896f3637bacbbf695f801250 (diff) | |
download | ruby-a606038c6abf31740e38448a164f872d3c94c83f.tar.gz |
* enc/utf_8.c (code_to_mbc): suppressed a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-rw-r--r-- | enc/utf_8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/utf_8.c b/enc/utf_8.c index 3b9387c613..f9a97c72dd 100644 --- a/enc/utf_8.c +++ b/enc/utf_8.c @@ -363,7 +363,7 @@ code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc ARG_UNUSED) } *p++ = UTF8_TRAIL0(code); - return p - buf; + return (int)(p - buf); } } |