diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-01-28 13:13:26 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-01-28 13:13:26 -0200 |
commit | e2b15aa21d2f31ccc93e35f50928e26a8d9c84ce (patch) | |
tree | 0c8fe009fffa187be71ea3e268daf1a6e29d6d9a /lfunc.h | |
parent | 89110986d7a9e81960261ae682780d5fd06dc4ac (diff) | |
download | lua-e2b15aa21d2f31ccc93e35f50928e26a8d9c84ce.tar.gz lua-e2b15aa21d2f31ccc93e35f50928e26a8d9c84ce.tar.bz2 lua-e2b15aa21d2f31ccc93e35f50928e26a8d9c84ce.zip |
janitor work on casts
Diffstat (limited to 'lfunc.h')
-rw-r--r-- | lfunc.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.h,v 2.17 2017/05/04 13:32:01 roberto Exp roberto $ | 2 | ** $Id: lfunc.h,v 2.18 2017/06/29 15:06:44 roberto Exp roberto $ |
3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -11,11 +11,11 @@ | |||
11 | #include "lobject.h" | 11 | #include "lobject.h" |
12 | 12 | ||
13 | 13 | ||
14 | #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ | 14 | #define sizeCclosure(n) (cast_int(sizeof(CClosure)) + \ |
15 | cast(int, sizeof(TValue)*((n)-1))) | 15 | cast_int(sizeof(TValue)*((n)-1))) |
16 | 16 | ||
17 | #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ | 17 | #define sizeLclosure(n) (cast_int(sizeof(LClosure)) + \ |
18 | cast(int, sizeof(TValue *)*((n)-1))) | 18 | cast_int(sizeof(TValue *)*((n)-1))) |
19 | 19 | ||
20 | 20 | ||
21 | /* test whether thread is in 'twups' list */ | 21 | /* test whether thread is in 'twups' list */ |