Skip to content

Commit

Permalink
feature: increased the maximum number of upvalues allowed from 60 to …
Browse files Browse the repository at this point in the history
…120.
  • Loading branch information
agentzh committed Jun 26, 2019
1 parent e262de5 commit b6f2c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lj_def.h
Expand Up @@ -66,7 +66,7 @@ typedef unsigned int uintptr_t;
#define LJ_MAX_BCINS (1<<26) /* Max. # of bytecode instructions. */
#define LJ_MAX_SLOTS 250 /* Max. # of slots in a Lua func. */
#define LJ_MAX_LOCVAR 200 /* Max. # of local variables. */
#define LJ_MAX_UPVAL 60 /* Max. # of upvalues. */
#define LJ_MAX_UPVAL 120 /* Max. # of upvalues. */

#define LJ_MAX_IDXCHAIN 100 /* __index/__newindex chain limit. */
#define LJ_STACK_EXTRA (5+2*LJ_FR2) /* Extra stack space (metamethods). */
Expand Down

0 comments on commit b6f2c45

Please sign in to comment.