diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-11-11 13:38:43 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-11-11 13:38:43 -0200 |
commit | 23b9ceb0a481a2ae079f4605704d11946207d417 (patch) | |
tree | 02a465485adc463ee0aaba585efa3e844bc24437 /ltable.c | |
parent | 0a6a6b9d9d7b4ad0d627a8841ce4409e437bf70e (diff) | |
download | lua-23b9ceb0a481a2ae079f4605704d11946207d417.tar.gz lua-23b9ceb0a481a2ae079f4605704d11946207d417.tar.bz2 lua-23b9ceb0a481a2ae079f4605704d11946207d417.zip |
allows larger array parts in tables (no need to restrict it to 2^26)
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.51 2010/06/04 13:05:29 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.52 2010/06/25 12:18:10 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -38,8 +38,8 @@ | |||
38 | /* | 38 | /* |
39 | ** max size of array part is 2^MAXBITS | 39 | ** max size of array part is 2^MAXBITS |
40 | */ | 40 | */ |
41 | #if LUAI_BITSINT > 26 | 41 | #if LUAI_BITSINT >= 32 |
42 | #define MAXBITS 26 | 42 | #define MAXBITS 30 |
43 | #else | 43 | #else |
44 | #define MAXBITS (LUAI_BITSINT-2) | 44 | #define MAXBITS (LUAI_BITSINT-2) |
45 | #endif | 45 | #endif |