modules/mruby/mrbgems/mruby-struct/src/struct.c in webruby-0.1.2 vs modules/mruby/mrbgems/mruby-struct/src/struct.c in webruby-0.2.1
- old
+ new
@@ -292,10 +292,10 @@
else nm = mrb_str_new_cstr(mrb, name);
ary = mrb_ary_new(mrb);
va_start(ar, name);
while ((mem = va_arg(ar, char*)) != 0) {
- mrb_sym slot = mrb_intern(mrb, mem);
+ mrb_sym slot = mrb_intern_cstr(mrb, mem);
mrb_ary_push(mrb, ary, mrb_symbol_value(slot));
}
va_end(ar);
return make_struct(mrb, nm, ary, struct_class(mrb));