aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lcode.c b/lcode.c
index 174c826a..eadaef52 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 1.106 2002/06/03 12:59:26 roberto Exp roberto $ 2** $Id: lcode.c,v 1.107 2002/06/12 14:51:31 roberto Exp roberto $
3** Code generator for Lua 3** Code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -138,7 +138,7 @@ static void luaK_patchlistaux (FuncState *fs, int list,
138} 138}
139 139
140 140
141void luaK_dischargejpc (FuncState *fs) { 141static void luaK_dischargejpc (FuncState *fs) {
142 luaK_patchlistaux(fs, fs->jpc, fs->pc, NO_REG, fs->pc, NO_REG, fs->pc); 142 luaK_patchlistaux(fs, fs->jpc, fs->pc, NO_REG, fs->pc, NO_REG, fs->pc);
143 fs->jpc = NO_JUMP; 143 fs->jpc = NO_JUMP;
144} 144}
@@ -207,7 +207,7 @@ static void freeexp (FuncState *fs, expdesc *e) {
207static int addk (FuncState *fs, TObject *k, TObject *v) { 207static int addk (FuncState *fs, TObject *k, TObject *v) {
208 const TObject *index = luaH_get(fs->h, k); 208 const TObject *index = luaH_get(fs->h, k);
209 if (ttype(index) == LUA_TNUMBER) { 209 if (ttype(index) == LUA_TNUMBER) {
210 lua_assert(luaO_equalObj(&fs->f->k[cast(int, nvalue(index))], v)); 210 lua_assert(luaO_rawequalObj(&fs->f->k[cast(int, nvalue(index))], v));
211 return cast(int, nvalue(index)); 211 return cast(int, nvalue(index));
212 } 212 }
213 else { /* constant not found; create a new entry */ 213 else { /* constant not found; create a new entry */