aboutsummaryrefslogtreecommitdiff
path: root/lfunc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-27 13:32:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-27 13:32:59 -0300
commit0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b (patch)
tree0ac634fed90877130b1f102bf4075af999de2158 /lfunc.h
parent15231d4fb2f6984b25e0353ff46eda1a180b686d (diff)
downloadlua-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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lfunc.h b/lfunc.h
index 3be265ef..162b55ec 100644
--- a/lfunc.h
+++ b/lfunc.h
@@ -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 */