summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-29 03:19:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-29 03:19:00 +0000
commitee7980d044de2c6cb14033292aca120c598dafa8 (patch)
tree9faf7b09a3c7b6b69ee25b4ca9606cad90855cac
parent8554cd4a351093222293f33b3fa1e276556499ab (diff)
downloadruby-ee7980d044de2c6cb14033292aca120c598dafa8.tar.gz
ruby-ee7980d044de2c6cb14033292aca120c598dafa8.tar.xz
ruby-ee7980d044de2c6cb14033292aca120c598dafa8.zip
* re.c (rb_reg_mbclen2): suppress a warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index f6cb2b2a4..04ba3e009 100644
--- a/re.c
+++ b/re.c
@@ -379,7 +379,7 @@ kcode_reset_option(void)
int
rb_reg_mbclen2(unsigned int c, VALUE re)
{
- unsigned char uc = (unsigned char)c;
+ char uc = (unsigned char)c;
return rb_enc_mbclen(&uc, rb_enc_get(re));
}