summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-08-05 01:05:56 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-08-05 01:06:36 +0900
commit36dbfd9bda18c2dbafcf58b524b80f4318a3b677 (patch)
tree17038f5cebb290e54bab713b40289c1c1a4531b1 /mrbgems/mruby-compiler
parente86c252a9960309460d12a7e3d523b43296ddd38 (diff)
downloadmruby-36dbfd9bda18c2dbafcf58b524b80f4318a3b677.tar.gz
mruby-36dbfd9bda18c2dbafcf58b524b80f4318a3b677.zip
Change return type of `scan_oct` from `int` to `int32_t`.
Diffstat (limited to 'mrbgems/mruby-compiler')
-rw-r--r--mrbgems/mruby-compiler/core/parse.y4
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') {