diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-25 10:38:47 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-25 10:38:47 -0200 |
commit | e47baca75a3854c9f3065c554d6758bd23c5d73f (patch) | |
tree | a6b5edaa570a008e2880a53455654df069088540 | |
parent | b8a680c11452b9e305b66400952f3bf702bf2dd5 (diff) | |
download | lua-e47baca75a3854c9f3065c554d6758bd23c5d73f.tar.gz lua-e47baca75a3854c9f3065c554d6758bd23c5d73f.tar.bz2 lua-e47baca75a3854c9f3065c554d6758bd23c5d73f.zip |
warnings from Visual C++
-rw-r--r-- | lgc.c | 4 | ||||
-rw-r--r-- | lgc.h | 4 | ||||
-rw-r--r-- | ltable.c | 4 |
3 files changed, 5 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 1.162 2002/11/21 17:19:11 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.163 2002/11/22 18:01:46 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -486,7 +486,7 @@ void luaC_collectgarbage (lua_State *L) { | |||
486 | } | 486 | } |
487 | 487 | ||
488 | 488 | ||
489 | void luaC_link (lua_State *L, GCObject *o, int tt) { | 489 | void luaC_link (lua_State *L, GCObject *o, lu_byte tt) { |
490 | o->gch.next = G(L)->rootgc; | 490 | o->gch.next = G(L)->rootgc; |
491 | G(L)->rootgc = o; | 491 | G(L)->rootgc = o; |
492 | o->gch.marked = 0; | 492 | o->gch.marked = 0; |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 1.15 2002/08/16 20:00:28 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 1.16 2002/08/30 19:09:21 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -18,7 +18,7 @@ | |||
18 | void luaC_callallgcTM (lua_State *L); | 18 | void luaC_callallgcTM (lua_State *L); |
19 | void luaC_sweep (lua_State *L, int all); | 19 | void luaC_sweep (lua_State *L, int all); |
20 | void luaC_collectgarbage (lua_State *L); | 20 | void luaC_collectgarbage (lua_State *L); |
21 | void luaC_link (lua_State *L, GCObject *o, int tt); | 21 | void luaC_link (lua_State *L, GCObject *o, lu_byte tt); |
22 | 22 | ||
23 | 23 | ||
24 | #endif | 24 | #endif |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 1.122 2002/11/14 11:51:50 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.123 2002/11/14 16:15:53 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -86,8 +86,6 @@ Node *luaH_mainposition (const Table *t, const TObject *key) { | |||
86 | default: | 86 | default: |
87 | return hashpointer(t, gcvalue(key)); | 87 | return hashpointer(t, gcvalue(key)); |
88 | } | 88 | } |
89 | lua_assert(0); | ||
90 | return 0; /* to avoid warnings */ | ||
91 | } | 89 | } |
92 | 90 | ||
93 | 91 | ||