* 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
This commit is contained in:
parent
167358d000
commit
69099d3e69
2
re.c
2
re.c
@ -379,7 +379,7 @@ kcode_reset_option(void)
|
|||||||
int
|
int
|
||||||
rb_reg_mbclen2(unsigned int c, VALUE re)
|
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));
|
return rb_enc_mbclen(&uc, rb_enc_get(re));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user