From e2b15aa21d2f31ccc93e35f50928e26a8d9c84ce Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sun, 28 Jan 2018 13:13:26 -0200 Subject: janitor work on casts --- lfunc.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lfunc.h') diff --git a/lfunc.h b/lfunc.h index b7d75869..dbda3fdf 100644 --- a/lfunc.h +++ b/lfunc.h @@ -1,5 +1,5 @@ /* -** $Id: lfunc.h,v 2.17 2017/05/04 13:32:01 roberto Exp roberto $ +** $Id: lfunc.h,v 2.18 2017/06/29 15:06:44 roberto Exp roberto $ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ @@ -11,11 +11,11 @@ #include "lobject.h" -#define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ - cast(int, sizeof(TValue)*((n)-1))) +#define sizeCclosure(n) (cast_int(sizeof(CClosure)) + \ + cast_int(sizeof(TValue)*((n)-1))) -#define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ - cast(int, sizeof(TValue *)*((n)-1))) +#define sizeLclosure(n) (cast_int(sizeof(LClosure)) + \ + cast_int(sizeof(TValue *)*((n)-1))) /* test whether thread is in 'twups' list */ -- cgit v1.2.3-55-g6feb