aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-04-03 10:35:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-04-03 10:35:34 -0300
commit0d88545b82b82671904474499b5d312141170ab6 (patch)
tree5a924d4d492dd987a5480a15cd1d12947089db85 /lbaselib.c
parentf84c5a5fc68f83b3adad37919e0096ea3c7f4129 (diff)
downloadlua-0d88545b82b82671904474499b5d312141170ab6.tar.gz
lua-0d88545b82b82671904474499b5d312141170ab6.tar.bz2
lua-0d88545b82b82671904474499b5d312141170ab6.zip
warnings from several compilers (mainly typecasts when lua_Number is float)
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