warnings from Visual C++
This commit is contained in:
4
lgc.c
4
lgc.c
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lgc.c,v 1.162 2002/11/21 17:19:11 roberto Exp roberto $
|
** $Id: lgc.c,v 1.163 2002/11/22 18:01:46 roberto Exp roberto $
|
||||||
** Garbage Collector
|
** Garbage Collector
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -486,7 +486,7 @@ void luaC_collectgarbage (lua_State *L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void luaC_link (lua_State *L, GCObject *o, int tt) {
|
void luaC_link (lua_State *L, GCObject *o, lu_byte tt) {
|
||||||
o->gch.next = G(L)->rootgc;
|
o->gch.next = G(L)->rootgc;
|
||||||
G(L)->rootgc = o;
|
G(L)->rootgc = o;
|
||||||
o->gch.marked = 0;
|
o->gch.marked = 0;
|
||||||
|
|||||||
4
lgc.h
4
lgc.h
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lgc.h,v 1.15 2002/08/16 20:00:28 roberto Exp roberto $
|
** $Id: lgc.h,v 1.16 2002/08/30 19:09:21 roberto Exp roberto $
|
||||||
** Garbage Collector
|
** Garbage Collector
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
void luaC_callallgcTM (lua_State *L);
|
void luaC_callallgcTM (lua_State *L);
|
||||||
void luaC_sweep (lua_State *L, int all);
|
void luaC_sweep (lua_State *L, int all);
|
||||||
void luaC_collectgarbage (lua_State *L);
|
void luaC_collectgarbage (lua_State *L);
|
||||||
void luaC_link (lua_State *L, GCObject *o, int tt);
|
void luaC_link (lua_State *L, GCObject *o, lu_byte tt);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
4
ltable.c
4
ltable.c
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: ltable.c,v 1.122 2002/11/14 11:51:50 roberto Exp roberto $
|
** $Id: ltable.c,v 1.123 2002/11/14 16:15:53 roberto Exp roberto $
|
||||||
** Lua tables (hash)
|
** Lua tables (hash)
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -86,8 +86,6 @@ Node *luaH_mainposition (const Table *t, const TObject *key) {
|
|||||||
default:
|
default:
|
||||||
return hashpointer(t, gcvalue(key));
|
return hashpointer(t, gcvalue(key));
|
||||||
}
|
}
|
||||||
lua_assert(0);
|
|
||||||
return 0; /* to avoid warnings */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user