diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-05 01:05:56 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-05 01:06:36 +0900 |
| commit | 36dbfd9bda18c2dbafcf58b524b80f4318a3b677 (patch) | |
| tree | 17038f5cebb290e54bab713b40289c1c1a4531b1 /mrbgems/mruby-compiler/core/parse.y | |
| parent | e86c252a9960309460d12a7e3d523b43296ddd38 (diff) | |
| download | mruby-36dbfd9bda18c2dbafcf58b524b80f4318a3b677.tar.gz mruby-36dbfd9bda18c2dbafcf58b524b80f4318a3b677.zip | |
Change return type of `scan_oct` from `int` to `int32_t`.
Diffstat (limited to 'mrbgems/mruby-compiler/core/parse.y')
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index d9426d0ae..c82a93932 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -3751,11 +3751,11 @@ toklen(parser_state *p) #define IS_LABEL_POSSIBLE() ((p->lstate == EXPR_BEG && !cmd_state) || IS_ARG()) #define IS_LABEL_SUFFIX(n) (peek_n(p, ':',(n)) && !peek_n(p, ':', (n)+1)) -static int +static int32_t scan_oct(const int *start, int len, int *retlen) { const int *s = start; - int retval = 0; + int32_t retval = 0; /* mrb_assert(len <= 3) */ while (len-- && *s >= '0' && *s <= '7') { |
