diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-06-04 09:54:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-06-04 09:54:31 -0300 |
commit | 519c57d597625f010d1bbb3f91bac5d193111060 (patch) | |
tree | 5f218af5cfd7b633935ece8f7223f86397193460 /lstate.c | |
parent | c15543b9afa31ab5dc564511ae11acd808405e8f (diff) | |
download | lua-519c57d597625f010d1bbb3f91bac5d193111060.tar.gz lua-519c57d597625f010d1bbb3f91bac5d193111060.tar.bz2 lua-519c57d597625f010d1bbb3f91bac5d193111060.zip |
Removed uneeded check in parser
In a constructor, each field generates at least one opcode, and the
number of opcodes is limited by INT_MAX. Therefore, the counters for
number of fields cannot exceed this limit. (The current limit for
items in the hash part of a table has a limit smaller than INT_MAX.
However, as long as there are no overflows, the logic for table
resizing will handle that limit.)
Diffstat (limited to 'lstate.c')
0 files changed, 0 insertions, 0 deletions