diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-12-22 18:02:31 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-12-22 18:02:31 +0900 |
| commit | 7e4a7abf5f2396acc1eb302da75f79b296aa3b31 (patch) | |
| tree | 16f444f586b644175032c34253a14e1e2cb403c2 /mrbgems | |
| parent | d0727be6eb22932aaf67447d09c9b3751516e891 (diff) | |
| parent | 7cc33af2dc1137ef819b589e51e3756bdaa222e1 (diff) | |
| download | mruby-7e4a7abf5f2396acc1eb302da75f79b296aa3b31.tar.gz mruby-7e4a7abf5f2396acc1eb302da75f79b296aa3b31.zip | |
Merge pull request #3055 from mattn/fix-msvc-warnings
fix build on VS2012
Diffstat (limited to 'mrbgems')
| -rwxr-xr-x | mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c | 4 | ||||
| -rw-r--r-- | mrbgems/mruby-math/src/math.c | 2 |
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> |
