From cdd0fe99464d7fb754f409dfec3277956eb30b83 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 21 May 1999 16:41:49 -0300 Subject: some C compilers cannot initialize a local struct --- ltable.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 85cc6218..73a6011e 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.20 1999/01/25 17:41:19 roberto Exp roberto $ +** $Id: ltable.c,v 1.21 1999/02/23 14:57:28 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -140,7 +140,8 @@ void luaH_set (Hash *t, TObject *ref, TObject *val) { if (ttype(ref(n)) != LUA_T_NIL) *val(n) = *val; else { - TObject buff = *val; /* rehash may invalidate this address */ + TObject buff; + buff = *val; /* rehash may invalidate this address */ if ((long)nuse(t)*3L > (long)nhash(t)*2L) { rehash(t); n = luaH_present(t, ref); -- cgit v1.2.3-55-g6feb