summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-08-31 16:46:07 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-08-31 16:46:07 -0300
commite1d072571ec6f9d830e575a2ecdc95fd43428e53 (patch)
tree830fab7f2acb9adaee2d63073d339cc9557a5437 /lstate.c
parent7651a5c6b2ee6ec59cadec6199319d482071f176 (diff)
downloadlua-github-e1d072571ec6f9d830e575a2ecdc95fd43428e53.tar.gz
better syntax for type casts
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index 90b395d8..456f1d6e 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
/*
-** $Id: lstate.c,v 1.65 2001/06/21 16:41:34 roberto Exp roberto $
+** $Id: lstate.c,v 1.66 2001/07/17 17:54:46 roberto Exp $
** Global State
** See Copyright Notice in lua.h
*/
@@ -33,7 +33,7 @@ static void close_state (lua_State *L, lua_State *OL);
** open parts that may cause memory-allocation errors
*/
static void f_luaopen (lua_State *L, void *ud) {
- struct Sopen *so = (struct Sopen *)ud;
+ struct Sopen *so = cast(struct Sopen *, ud);
if (so->stacksize == 0)
so->stacksize = DEFAULT_STACK_SIZE;
else