diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-11-29 09:32:44 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-11-29 09:32:44 +0900 |
| commit | 260cad689ae3b9f979d602052592331ca011dd92 (patch) | |
| tree | f353b1c9cc56df1df22a57175e6cc9ea6ff7a820 | |
| parent | 09c6ca936c965d63752276aa3203b3e7534874ae (diff) | |
| parent | 39b4caea81164b9a224e6abf715769c59f20c891 (diff) | |
| download | mruby-260cad689ae3b9f979d602052592331ca011dd92.tar.gz mruby-260cad689ae3b9f979d602052592331ca011dd92.zip | |
Merge pull request #2656 from murasesyuka/bugfix/mruby-bin-debugger_enforce_the_c99
adhoc fix for pass build
| -rwxr-xr-x | mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c index 9764d4e07..9759badfe 100755 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c @@ -58,9 +58,11 @@ print_api_common_error(int32_t error) } #undef STRTOUL -#define STRTOUL(ul,s) \ +#define STRTOUL(ul,s) { \ + int i; \ ul = 0; \ - for(int i=0; ISDIGIT(s[i]); i++) ul = 10*ul + (s[i] -'0'); + for(i=0; ISDIGIT(s[i]); i++) ul = 10*ul + (s[i] -'0'); \ +} static int32_t parse_breakpoint_no(char* args) |
