diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-28 16:14:47 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-28 16:14:47 -0300 |
commit | e723c75c02a48d0c766f1f30f7a321f7fdb239dc (patch) | |
tree | aa3f11828e25ccf2dc02d077e59ee12a4313a3bd /lbaselib.c | |
parent | b436ed58a3416c2e1936bdce880ac09925401a87 (diff) | |
download | lua-e723c75c02a48d0c766f1f30f7a321f7fdb239dc.tar.gz lua-e723c75c02a48d0c766f1f30f7a321f7fdb239dc.tar.bz2 lua-e723c75c02a48d0c766f1f30f7a321f7fdb239dc.zip |
details (avoid 'lint' warnings)
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.308 2014/12/08 15:26:55 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.309 2014/12/10 12:26:42 roberto Exp roberto $ |
3 | ** Basic library | 3 | ** Basic library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -55,7 +55,7 @@ static const char *b_str2int (const char *s, int base, lua_Integer *pn) { | |||
55 | return NULL; | 55 | return NULL; |
56 | do { | 56 | do { |
57 | int digit = (isdigit((unsigned char)*s)) ? *s - '0' | 57 | int digit = (isdigit((unsigned char)*s)) ? *s - '0' |
58 | : toupper((unsigned char)*s) - 'A' + 10; | 58 | : (toupper((unsigned char)*s) - 'A') + 10; |
59 | if (digit >= base) return NULL; /* invalid numeral */ | 59 | if (digit >= base) return NULL; /* invalid numeral */ |
60 | n = n * base + digit; | 60 | n = n * base + digit; |
61 | s++; | 61 | s++; |