diff options
| author | Masaki Muranaka <[email protected]> | 2013-03-12 20:00:48 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-03-12 20:00:48 +0900 |
| commit | dd29e05f8eafa7943ff56341622f55bb127c486d (patch) | |
| tree | 9e4f531f4fca35ecbe059a32b59c745eb05a29dd /src/parse.y | |
| parent | 2c54cf2e591053a47087a1da5ba53a22a4097322 (diff) | |
| download | mruby-dd29e05f8eafa7943ff56341622f55bb127c486d.tar.gz mruby-dd29e05f8eafa7943ff56341622f55bb127c486d.zip | |
Use int. They are no need to use unsigned/signed long. Think about 16bit architectures.
Diffstat (limited to 'src/parse.y')
| -rw-r--r-- | src/parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parse.y b/src/parse.y index 33b2d5272..d3e1ce8b9 100644 --- a/src/parse.y +++ b/src/parse.y @@ -3393,11 +3393,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 unsigned long +static int scan_oct(const int *start, int len, int *retlen) { const int *s = start; - unsigned long retval = 0; + int retval = 0; /* PARANOID: assert(len <= 3) */ @@ -3410,12 +3410,12 @@ scan_oct(const int *start, int len, int *retlen) return retval; } -static unsigned long +static int scan_hex(const int *start, int len, int *retlen) { static const char hexdigit[] = "0123456789abcdef0123456789ABCDEF"; register const int *s = start; - register unsigned long retval = 0; + register int retval = 0; char *tmp; /* PARANOID: assert(len <= 2) */ |
