summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-bin-debugger')
-rwxr-xr-xmrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c
index 9764d4e07..066293912 100755
--- a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c
+++ b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c
@@ -60,7 +60,8 @@ print_api_common_error(int32_t error)
#undef STRTOUL
#define STRTOUL(ul,s) \
ul = 0; \
- for(int i=0; ISDIGIT(s[i]); i++) ul = 10*ul + (s[i] -'0');
+ int i = 0; \
+ for(i=0; ISDIGIT(s[i]); i++) ul = 10*ul + (s[i] -'0');
static int32_t
parse_breakpoint_no(char* args)