aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 1c02921a..7d559585 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.128 2003/03/11 18:17:43 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.129 2003/03/19 21:14:34 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*/
@@ -66,7 +66,7 @@ static int luaB_tonumber (lua_State *L) {
66 if (s1 != s2) { /* at least one valid digit? */ 66 if (s1 != s2) { /* at least one valid digit? */
67 while (isspace((unsigned char)(*s2))) s2++; /* skip trailing spaces */ 67 while (isspace((unsigned char)(*s2))) s2++; /* skip trailing spaces */
68 if (*s2 == '\0') { /* no invalid trailing characters? */ 68 if (*s2 == '\0') { /* no invalid trailing characters? */
69 lua_pushnumber(L, n); 69 lua_pushnumber(L, (lua_Number)n);
70 return 1; 70 return 1;
71 } 71 }
72 } 72 }
@@ -187,8 +187,8 @@ static int luaB_rawset (lua_State *L) {
187 187
188 188
189static int luaB_gcinfo (lua_State *L) { 189static int luaB_gcinfo (lua_State *L) {
190 lua_pushnumber(L, lua_getgccount(L)); 190 lua_pushnumber(L, (lua_Number)lua_getgccount(L));
191 lua_pushnumber(L, lua_getgcthreshold(L)); 191 lua_pushnumber(L, (lua_Number)lua_getgcthreshold(L));
192 return 2; 192 return 2;
193} 193}
194 194