aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index 628c640c..d8ff3d80 100644
--- a/ltable.c
+++ b/ltable.c
@@ -214,8 +214,8 @@ LUAI_FUNC unsigned int luaH_realasize (const Table *t) {
214 size |= (size >> 4); 214 size |= (size >> 4);
215 size |= (size >> 8); 215 size |= (size >> 8);
216 size |= (size >> 16); 216 size |= (size >> 16);
217#if (INT_MAX >> 30 >> 1) > 0 217#if (UINT_MAX >> 30) > 3
218 size |= (size >> 32); /* int has more than 32 bits */ 218 size |= (size >> 32); /* unsigned int has more than 32 bits */
219#endif 219#endif
220 size++; 220 size++;
221 lua_assert(ispow2(size) && size/2 < t->alimit && t->alimit < size); 221 lua_assert(ispow2(size) && size/2 < t->alimit && t->alimit < size);