summaryrefslogtreecommitdiff
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
commit69099d3e69cda873114981b131bc45b1490bcbf7 (patch)
tree9faf7b09a3c7b6b69ee25b4ca9606cad90855cac
parent167358d00091069aac5874b38d04ef9ae20e1828 (diff)
* re.c (rb_reg_mbclen2): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 f6cb2b2..04ba3e0 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));
}