aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-05-13 16:17:21 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-05-13 16:17:21 -0300
commit279c3a6961c60252f0368fdea889caf977f85fe0 (patch)
tree1614c0b508f34657f81d155dec6dffd92e671479 /llimits.h
parent49c42f3615bd876657bf697e3bf040ce796ae238 (diff)
downloadlua-279c3a6961c60252f0368fdea889caf977f85fe0.tar.gz
lua-279c3a6961c60252f0368fdea889caf977f85fe0.tar.bz2
lua-279c3a6961c60252f0368fdea889caf977f85fe0.zip
A few changes in tests about number of bits in integers
- The preprocessor must work with at least 'long', and therefore must do shifts of up to 31 bits correctly. - Whenever possible, use unsigned types in shifts.
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/llimits.h b/llimits.h
index 950e7e64..2b52c83b 100644
--- a/llimits.h
+++ b/llimits.h
@@ -15,10 +15,6 @@
15#include "lua.h" 15#include "lua.h"
16 16
17 17
18/* minimum number of bits in an integer */
19#define LUAI_BITSINT (LUAI_IS32INT ? 32 : 16)
20
21
22/* 18/*
23** 'lu_mem' and 'l_mem' are unsigned/signed integers big enough to count 19** 'lu_mem' and 'l_mem' are unsigned/signed integers big enough to count
24** the total memory used by Lua (in bytes). Usually, 'size_t' and 20** the total memory used by Lua (in bytes). Usually, 'size_t' and