Commit ce45304e authored by Jun Hiroe's avatar Jun Hiroe

Refactor mrb_utf8_strlen() in mruby-string-utf8

parent 9fe8653e
......@@ -127,9 +127,7 @@ mrb_utf8_strlen(mrb_value str, mrb_int len)
static mrb_value
mrb_str_size(mrb_state *mrb, mrb_value str)
{
mrb_int size = mrb_utf8_strlen(str, -1);
return mrb_fixnum_value(size);
return mrb_fixnum_value(mrb_utf8_strlen(str, -1));
}
#define RSTRING_LEN_UTF8(s) mrb_utf8_strlen(s, -1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment