Commit e426243e authored by kurodash's avatar kurodash

fixed build error on VS2012 toolchains.

parent e350e311
...@@ -1369,9 +1369,12 @@ mrb_mod_to_s(mrb_state *mrb, mrb_value klass) ...@@ -1369,9 +1369,12 @@ mrb_mod_to_s(mrb_state *mrb, mrb_value klass)
mrb_str_cat(mrb, str, ">", 1); mrb_str_cat(mrb, str, ">", 1);
} }
else { else {
struct RClass *c;
mrb_value path;
str = mrb_str_buf_new(mrb, 32); str = mrb_str_buf_new(mrb, 32);
struct RClass *c = mrb_class_ptr(klass); c = mrb_class_ptr(klass);
mrb_value path = mrb_class_path(mrb, c); path = mrb_class_path(mrb, c);
if (mrb_nil_p(path)) { if (mrb_nil_p(path)) {
switch (mrb_type(klass)) { switch (mrb_type(klass)) {
......
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