From b17c76817d008de0e0de460c5d0fac4741d0fe02 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 13 Oct 1995 12:16:25 -0300 Subject: new function "luaI_findconstantbyname". --- opcode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opcode.c') diff --git a/opcode.c b/opcode.c index edf8d4c4..97eb3ea5 100644 --- a/opcode.c +++ b/opcode.c @@ -3,7 +3,7 @@ ** TecCGraf - PUC-Rio */ -char *rcs_opcode="$Id: opcode.c,v 3.41 1995/10/09 13:10:20 roberto Exp roberto $"; +char *rcs_opcode="$Id: opcode.c,v 3.42 1995/10/09 18:45:59 roberto Exp roberto $"; #include #include @@ -678,7 +678,7 @@ void lua_pushstring (char *s) */ void lua_pushliteral (char *s) { - tsvalue(top) = lua_constant[luaI_findconstant(lua_constcreate(s))]; + tsvalue(top) = lua_constant[luaI_findconstantbyname(s)]; tag(top) = LUA_T_STRING; incr_top; } -- cgit v1.2.3-55-g6feb