Skip to content
Snippets Groups Projects
Commit bae32360 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Fix box/msgpack and box/lua tests on 32-bit Lua. Closes #143.

This patch limits range of numbers that pushed as lua_Integer to
[INT32_MIN, INT32_MAX].
parent 4ca418c8
No related branches found
No related tags found
No related merge requests found
......@@ -269,7 +269,7 @@ luamp_decode(struct lua_State *L, const char **data)
{
uint64_t val = mp_decode_uint(data);
#if defined(LUAJIT)
if (val <= UINT32_MAX) {
if (val <= INT32_MAX) {
lua_pushinteger(L, val);
} else {
*(uint64_t *) luaL_pushcdata(L, CTID_UINT64,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment