summaryrefslogtreecommitdiff
path: root/enc/utf_8.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-21 06:37:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-21 06:37:36 +0000
commita606038c6abf31740e38448a164f872d3c94c83f (patch)
treefa60eb976f79bba328a7ded0d1f07de773dd206e /enc/utf_8.c
parent7fa73456098b5554896f3637bacbbf695f801250 (diff)
* 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/utf_8.c')
-rw-r--r--enc/utf_8.c2
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);
}
}