Change return type of scan_oct from int to int32_t.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-08-05 01:05:56 +09:00
parent e86c252a99
commit 36dbfd9bda
+2 -2
View File
@@ -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') {