diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-12-02 15:44:32 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-12-02 15:44:32 +0900 |
| commit | ea828944eff14b0cc3be88c432499602bd454c75 (patch) | |
| tree | 8caa110cabf5b1376ac21fd8ad5637e9b4b89860 /mrbgems | |
| parent | 4c70b5c644a1f936ac4790ab437cf76a99fb8aa8 (diff) | |
| parent | 64d1d104928336dc0cd9c67321617fa455ccac62 (diff) | |
| download | mruby-ea828944eff14b0cc3be88c432499602bd454c75.tar.gz mruby-ea828944eff14b0cc3be88c432499602bd454c75.zip | |
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'mrbgems')
| -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) |
