From e426243ea0ae12971f00198c6872b8f4cb7a4bac Mon Sep 17 00:00:00 2001 From: kurodash Date: Tue, 26 Mar 2013 15:36:44 +0900 Subject: fixed build error on VS2012 toolchains. --- src/class.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/class.c b/src/class.c index 11f68340c..84132c38a 100644 --- a/src/class.c +++ b/src/class.c @@ -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)) { -- cgit v1.2.3