Add inline to str_with_class().

This commit is contained in:
Tatsuhiko Kubo
2014-09-09 00:44:49 +09:00
parent d23bc85b54
commit cfb321e877
+1 -1
View File
@@ -167,7 +167,7 @@ str_new(mrb_state *mrb, const char *p, size_t len)
return s;
}
static void
static inline void
str_with_class(mrb_state *mrb, struct RString *s, mrb_value obj)
{
s->c = mrb_str_ptr(obj)->c;