diff options
| -rw-r--r-- | lua_cjson.c | 5 |
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 | |||
| 99 | static const char * const *json_empty_array; | 104 | static const char * const *json_empty_array; |
| 100 | static const char * const *json_array; | 105 | static const char * const *json_array; |
| 101 | 106 | ||
