From e3b1ac2c83c94f3303d3b4504ef458ed24d6992a Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 24 Oct 2021 09:58:47 -0700 Subject: [PATCH] mildly less confusing --- src/lstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lstate.c b/src/lstate.c index ee088be..94f51c7 100644 --- a/src/lstate.c +++ b/src/lstate.c @@ -141,7 +141,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { void *l = (*f)(ud, NULL, 0, sizeof(LG)); if (l == NULL) return NULL; L = cast(lua_State*, l); - g = &cast(LG *, L)->g; + g = &cast(LG *, l)->g; L->next = NULL; L->tt = LUA_TTHREAD; g->currentwhite = bit2mask(WHITE0BIT, FIXEDBIT);