aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-11-11 13:38:43 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-11-11 13:38:43 -0200
commit23b9ceb0a481a2ae079f4605704d11946207d417 (patch)
tree02a465485adc463ee0aaba585efa3e844bc24437 /ltable.c
parent0a6a6b9d9d7b4ad0d627a8841ce4409e437bf70e (diff)
downloadlua-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltable.c b/ltable.c
index f9967661..4458b58b 100644
--- a/ltable.c
+++ b/ltable.c
@@ -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