From dabb19fc17acee55f9052c5d17ec07360cec809d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 10 Jan 2001 16:56:11 -0200 Subject: specialized versions for luaH_set (numbers and strings) --- ldo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldo.c') diff --git a/ldo.c b/ldo.c index eb6fd46e..46c397ea 100644 --- a/ldo.c +++ b/ldo.c @@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 1.111 2000/12/28 12:55:41 roberto Exp roberto $ +** $Id: ldo.c,v 1.112 2001/01/10 16:58:11 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -332,7 +332,7 @@ struct lua_longjmp { static void message (lua_State *L, const char *s) { - const TObject *em = luaH_getglobal(L, LUA_ERRORMESSAGE); + const TObject *em = luaH_getstr(L->gt, luaS_newliteral(L, LUA_ERRORMESSAGE)); if (ttype(em) == LUA_TFUNCTION) { *L->top = *em; incr_top; -- cgit v1.2.3-55-g6feb