mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #1073 from kurodash/pr-builderr-on-vs2012
fix build error on VS2012 toolchains.
This commit is contained in:
+5
-2
@@ -1369,9 +1369,12 @@ mrb_mod_to_s(mrb_state *mrb, mrb_value klass)
|
||||
mrb_str_cat(mrb, str, ">", 1);
|
||||
}
|
||||
else {
|
||||
struct RClass *c;
|
||||
mrb_value path;
|
||||
|
||||
str = mrb_str_buf_new(mrb, 32);
|
||||
struct RClass *c = mrb_class_ptr(klass);
|
||||
mrb_value path = mrb_class_path(mrb, c);
|
||||
c = mrb_class_ptr(klass);
|
||||
path = mrb_class_path(mrb, c);
|
||||
|
||||
if (mrb_nil_p(path)) {
|
||||
switch (mrb_type(klass)) {
|
||||
|
||||
Reference in New Issue
Block a user