aboutsummaryrefslogtreecommitdiff
path: root/lbuiltin.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbuiltin.c')
-rw-r--r--lbuiltin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbuiltin.c b/lbuiltin.c
index 0398c7ac..d72a320d 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbuiltin.c,v 1.37 1998/12/15 14:59:59 roberto Exp roberto $ 2** $Id: lbuiltin.c,v 1.38 1998/12/15 15:21:09 roberto Exp $
3** Built-in functions 3** Built-in functions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -268,7 +268,7 @@ static void luaB_tonumber (void) {
268 } 268 }
269 else { 269 else {
270 char *s = luaL_check_string(1); 270 char *s = luaL_check_string(1);
271 unsigned long n; 271 long n;
272 luaL_arg_check(0 <= base && base <= 36, 2, "base out of range"); 272 luaL_arg_check(0 <= base && base <= 36, 2, "base out of range");
273 n = strtol(s, &s, base); 273 n = strtol(s, &s, base);
274 while (isspace(*s)) s++; /* skip trailing spaces */ 274 while (isspace(*s)) s++; /* skip trailing spaces */