aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
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 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.316 2017/05/26 19:14:29 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.317 2017/06/27 18:32:49 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*/
@@ -49,7 +49,7 @@ static const char *b_str2int (const char *s, int base, lua_Integer *pn) {
49 lua_Unsigned n = 0; 49 lua_Unsigned n = 0;
50 int neg = 0; 50 int neg = 0;
51 s += strspn(s, SPACECHARS); /* skip initial spaces */ 51 s += strspn(s, SPACECHARS); /* skip initial spaces */
52 if (*s == '-') { s++; neg = 1; } /* handle signal */ 52 if (*s == '-') { s++; neg = 1; } /* handle sign */
53 else if (*s == '+') s++; 53 else if (*s == '+') s++;
54 if (!isalnum((unsigned char)*s)) /* no digit? */ 54 if (!isalnum((unsigned char)*s)) /* no digit? */
55 return NULL; 55 return NULL;