aboutsummaryrefslogtreecommitdiff
path: root/lfunc.h
diff options
context:
space:
mode:
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 */