From e1d072571ec6f9d830e575a2ecdc95fd43428e53 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 31 Aug 2001 16:46:07 -0300 Subject: better syntax for type casts --- ltests.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ltests.h') diff --git a/ltests.h b/ltests.h index 3fc03cc1..bf460c35 100644 --- a/ltests.h +++ b/ltests.h @@ -1,5 +1,5 @@ /* -** $Id: ltests.h,v 1.6 2001/03/02 17:27:50 roberto Exp roberto $ +** $Id: ltests.h,v 1.7 2001/06/28 19:58:57 roberto Exp $ ** Internal Header for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -43,8 +43,8 @@ void *debug_realloc (void *block, size_t oldsize, size_t size); /* test for lock/unlock */ #define LUA_USERSTATE int *lock; extern int islocked; -#define lua_lock(L) lua_assert((**((int **)L))++ == 0) -#define lua_unlock(L) lua_assert(--(**((int **)L)) == 0) +#define lua_lock(L) lua_assert((**cast(int **, L))++ == 0) +#define lua_unlock(L) lua_assert(--(**cast(int **, L)) == 0) extern lua_State *lua_state; -- cgit v1.2.3-55-g6feb