aboutsummaryrefslogtreecommitdiff
path: root/ldump.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 /ldump.c
parentb0f3df16a495745cf16657a48dde6845ec85c732 (diff)
downloadlua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.tar.gz
lua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.tar.bz2
lua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.zip
New macro 'l_numbits'
Diffstat (limited to 'ldump.c')
-rw-r--r--ldump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldump.c b/ldump.c
index 54f96674..d8fca317 100644
--- a/ldump.c
+++ b/ldump.c
@@ -87,7 +87,7 @@ static void dumpByte (DumpState *D, int y) {
87** size for 'dumpVarint' buffer: each byte can store up to 7 bits. 87** size for 'dumpVarint' buffer: each byte can store up to 7 bits.
88** (The "+6" rounds up the division.) 88** (The "+6" rounds up the division.)
89*/ 89*/
90#define DIBS ((sizeof(size_t) * CHAR_BIT + 6) / 7) 90#define DIBS ((l_numbits(size_t) + 6) / 7)
91 91
92/* 92/*
93** Dumps an unsigned integer using the MSB Varint encoding 93** Dumps an unsigned integer using the MSB Varint encoding