summaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-16 11:19:06 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-16 11:19:06 -0200
commite4e5aa85a24bba6c243aeeaedc66ec712856c6db (patch)
treef2a4333254eb0e8ed7691d9110ff568d3bd6ec61 /lbaselib.c
parent4c0e36a46e11be2f101203ed0db66ea750bf4333 (diff)
downloadlua-github-e4e5aa85a24bba6c243aeeaedc66ec712856c6db.tar.gz
detail ('signal' -> 'sign' in comments)
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 87b0ce83..00452f2d 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lbaselib.c,v 1.316 2017/05/26 19:14:29 roberto Exp roberto $
+** $Id: lbaselib.c,v 1.317 2017/06/27 18:32:49 roberto Exp roberto $
** Basic library
** See Copyright Notice in lua.h
*/
@@ -49,7 +49,7 @@ static const char *b_str2int (const char *s, int base, lua_Integer *pn) {
lua_Unsigned n = 0;
int neg = 0;
s += strspn(s, SPACECHARS); /* skip initial spaces */
- if (*s == '-') { s++; neg = 1; } /* handle signal */
+ if (*s == '-') { s++; neg = 1; } /* handle sign */
else if (*s == '+') s++;
if (!isalnum((unsigned char)*s)) /* no digit? */
return NULL;