Commit 82515722 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2353 from suzukaze/refactor-string-utf8

Refactor mrb_utf8_strlen() in mruby-string-utf8
parents a789f776 ce45304e
......@@ -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