summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <[email protected]>2015-12-22 17:29:10 +0900
committerYasuhiro Matsumoto <[email protected]>2015-12-22 17:46:20 +0900
commit7cc33af2dc1137ef819b589e51e3756bdaa222e1 (patch)
tree16f444f586b644175032c34253a14e1e2cb403c2 /mrbgems
parentd0727be6eb22932aaf67447d09c9b3751516e891 (diff)
downloadmruby-7cc33af2dc1137ef819b589e51e3756bdaa222e1.tar.gz
mruby-7cc33af2dc1137ef819b589e51e3756bdaa222e1.zip
fix build on VS2012
Diffstat (limited to 'mrbgems')
-rwxr-xr-xmrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c4
-rw-r--r--mrbgems/mruby-math/src/math.c2
2 files changed, 3 insertions, 3 deletions
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 <float.h>