aboutsummaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-03-27 12:38:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-03-27 12:38:29 -0300
commitef5d171cc89b19ac1fea905b99d819b5f97cba00 (patch)
treebdc900455d00c0e8cfdcbb64993842a502fc9e21 /lfunc.c
parentb0f3df16a495745cf16657a48dde6845ec85c732 (diff)
downloadlua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.tar.gz
lua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.tar.bz2
lua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.zip
New macro 'l_numbits'
Diffstat (limited to 'lfunc.c')
-rw-r--r--lfunc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/lfunc.c b/lfunc.c
index c62a5d23..da7c6239 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -162,13 +162,8 @@ static void prepcallclosemth (lua_State *L, StkId level, TStatus status,
162} 162}
163 163
164 164
165/* 165/* Maximum value for deltas in 'tbclist' */
166** Maximum value for deltas in 'tbclist', dependent on the type 166#define MAXDELTA USHRT_MAX
167** of delta. (This macro assumes that an 'L' is in scope where it
168** is used.)
169*/
170#define MAXDELTA \
171 ((256ul << ((sizeof(L->stack.p->tbclist.delta) - 1) * 8)) - 1)
172 167
173 168
174/* 169/*