diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-03-27 12:38:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-03-27 12:38:29 -0300 |
commit | ef5d171cc89b19ac1fea905b99d819b5f97cba00 (patch) | |
tree | bdc900455d00c0e8cfdcbb64993842a502fc9e21 /ldump.c | |
parent | b0f3df16a495745cf16657a48dde6845ec85c732 (diff) | |
download | lua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.tar.gz lua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.tar.bz2 lua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.zip |
New macro 'l_numbits'
Diffstat (limited to 'ldump.c')
-rw-r--r-- | ldump.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |