From 7cc33af2dc1137ef819b589e51e3756bdaa222e1 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 22 Dec 2015 17:29:10 +0900 Subject: fix build on VS2012 --- mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c | 4 ++-- mrbgems/mruby-math/src/math.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'mrbgems') diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c index 986c69d82..67b4e8422 100755 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c @@ -450,7 +450,7 @@ mrb_debug_check_breakpoint_line( mrb_state *mrb, mrb_debug_context *dbg, const c { mrb_debug_breakpoint *bp; mrb_debug_linepoint *line_p; - int i; + uint32_t i; if((mrb == NULL) || (dbg == NULL) || (file == NULL) || (line <= 0)) { return MRB_DEBUG_INVALID_ARGUMENT; @@ -488,7 +488,7 @@ mrb_debug_check_breakpoint_method( mrb_state *mrb, mrb_debug_context *dbg, struc { mrb_debug_breakpoint *bp; int32_t bpno; - int i; + uint32_t i; if((mrb == NULL) || (dbg == NULL) || (class_obj == NULL)) { return MRB_DEBUG_INVALID_ARGUMENT; diff --git a/mrbgems/mruby-math/src/math.c b/mrbgems/mruby-math/src/math.c index b2bd81e4e..7302b92d7 100644 --- a/mrbgems/mruby-math/src/math.c +++ b/mrbgems/mruby-math/src/math.c @@ -19,7 +19,7 @@ domain_error(mrb_state *mrb, const char *func) } /* math functions not provided by Microsoft Visual C++ 2012 or older */ -#if defined _MSC_VER && _MSC_VER < 1700 +#if defined _MSC_VER && _MSC_VER <= 1700 #include -- cgit v1.2.3