diff options
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 */ |
