about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-10-24 09:57:19 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-10-24 09:57:19 -0700
commit7b285449c3e67e3fc9e63df27389011540c46c8f (patch)
tree3ad6ce8d8eefdb699d952b117832e5b053f0d756 /src
parent4a28aace9a3dfcb622cb0eac5e85d61d57ba7915 (diff)
downloadteliva-7b285449c3e67e3fc9e63df27389011540c46c8f.tar.gz
back to making sense of lua_newstate
Diffstat (limited to 'src')
-rw-r--r--src/lstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstate.c b/src/lstate.c
index b283d46..ee088be 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 = &((LG *)L)->g;
+  g = &cast(LG *, L)->g;
   L->next = NULL;
   L->tt = LUA_TTHREAD;
   g->currentwhite = bit2mask(WHITE0BIT, FIXEDBIT);