change linkage of mrb_str_size to internal

Use RSTRING_LEN to get the length.
This commit is contained in:
cremno
2014-08-04 01:14:23 +02:00
parent 206f89e209
commit 7dabb33cf0
+1 -1
View File
@@ -445,7 +445,7 @@ mrb_str_bytesize(mrb_state *mrb, mrb_value self)
*
* Returns a new string object containing a copy of <i>str</i>.
*/
MRB_API mrb_value
static mrb_value
mrb_str_size(mrb_state *mrb, mrb_value self)
{
struct RString *s = mrb_str_ptr(self);