diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-31 16:46:07 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-31 16:46:07 -0300 |
commit | e1d072571ec6f9d830e575a2ecdc95fd43428e53 (patch) | |
tree | 830fab7f2acb9adaee2d63073d339cc9557a5437 /lstate.c | |
parent | 7651a5c6b2ee6ec59cadec6199319d482071f176 (diff) | |
download | lua-github-e1d072571ec6f9d830e575a2ecdc95fd43428e53.tar.gz |
better syntax for type casts
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |