summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua_cjson.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lua_cjson.c b/lua_cjson.c
index 9de3f5a..2a69699 100644
--- a/lua_cjson.c
+++ b/lua_cjson.c
@@ -93,9 +93,14 @@
93#define strcasecmp _stricmp 93#define strcasecmp _stricmp
94#endif 94#endif
95 95
96#if LONG_MAX > ((1UL << 31) - 1)
96#define json_lightudata_mask(ludata) \ 97#define json_lightudata_mask(ludata) \
97 ((void *) ((uintptr_t) (ludata) & ((1UL << 47) - 1))) 98 ((void *) ((uintptr_t) (ludata) & ((1UL << 47) - 1)))
98 99
100#else
101#define json_lightudata_mask(ludata) (ludata)
102#endif
103
99static const char * const *json_empty_array; 104static const char * const *json_empty_array;
100static const char * const *json_array; 105static const char * const *json_array;
101 106