aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 97d974f8..ab33bffe 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -41,8 +41,6 @@
41** Some sizes are better limited to fit in 'int', but must also fit in 41** Some sizes are better limited to fit in 'int', but must also fit in
42** 'size_t'. (We assume that 'lua_Integer' cannot be smaller than 'int'.) 42** 'size_t'. (We assume that 'lua_Integer' cannot be smaller than 'int'.)
43*/ 43*/
44#define MAX_SIZET ((size_t)(~(size_t)0))
45
46#define MAXSIZE \ 44#define MAXSIZE \
47 (sizeof(size_t) < sizeof(int) ? MAX_SIZET : (size_t)(INT_MAX)) 45 (sizeof(size_t) < sizeof(int) ? MAX_SIZET : (size_t)(INT_MAX))
48 46