diff options
Diffstat (limited to 'ltable.c')
| -rw-r--r-- | ltable.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -863,8 +863,9 @@ Table *luaH_new (lua_State *L) { | |||
| 863 | } | 863 | } |
| 864 | 864 | ||
| 865 | 865 | ||
| 866 | size_t luaH_size (Table *t) { | 866 | lu_mem luaH_size (Table *t) { |
| 867 | size_t sz = sizeof(Table) + luaH_realasize(t) * (sizeof(Value) + 1); | 867 | lu_mem sz = cast(lu_mem, sizeof(Table)) |
| 868 | + luaH_realasize(t) * (sizeof(Value) + 1); | ||
| 868 | if (!isdummy(t)) | 869 | if (!isdummy(t)) |
| 869 | sz += sizehash(t); | 870 | sz += sizehash(t); |
| 870 | return sz; | 871 | return sz; |
