diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-27 13:32:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-27 13:32:59 -0300 |
commit | 0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b (patch) | |
tree | 0ac634fed90877130b1f102bf4075af999de2158 /lfunc.h | |
parent | 15231d4fb2f6984b25e0353ff46eda1a180b686d (diff) | |
download | lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.tar.gz lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.tar.bz2 lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.zip |
Added gcc option '-Wconversion'
No warnings for standard numerical types. Still pending alternative
numerical types.
Diffstat (limited to 'lfunc.h')
-rw-r--r-- | lfunc.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -11,11 +11,11 @@ | |||
11 | #include "lobject.h" | 11 | #include "lobject.h" |
12 | 12 | ||
13 | 13 | ||
14 | #define sizeCclosure(n) (cast_int(offsetof(CClosure, upvalue)) + \ | 14 | #define sizeCclosure(n) \ |
15 | cast_int(sizeof(TValue)) * (n)) | 15 | (offsetof(CClosure, upvalue) + sizeof(TValue) * cast_uint(n)) |
16 | 16 | ||
17 | #define sizeLclosure(n) (cast_int(offsetof(LClosure, upvals)) + \ | 17 | #define sizeLclosure(n) \ |
18 | cast_int(sizeof(TValue *)) * (n)) | 18 | (offsetof(LClosure, upvals) + sizeof(TValue *) * cast_uint(n)) |
19 | 19 | ||
20 | 20 | ||
21 | /* test whether thread is in 'twups' list */ | 21 | /* test whether thread is in 'twups' list */ |