lua-MessagePack issueshttps://framagit.org/fperrad/lua-MessagePack/-/issues2019-03-19T20:56:46Zhttps://framagit.org/fperrad/lua-MessagePack/-/issues/30Unpack starting from offset2019-03-19T20:56:46ZEndel DreyerUnpack starting from offsetIs it possible to call `unpack(bytes, offset)`? I have a stream of bytes, which not all of them are MessagePack-encoded. Thanks for your help!Is it possible to call `unpack(bytes, offset)`? I have a stream of bytes, which not all of them are MessagePack-encoded. Thanks for your help!https://framagit.org/fperrad/lua-MessagePack/-/issues/28pack math.huge(inf) will get error result (nan)2018-10-17T16:12:56ZFrançois Perradpack math.huge(inf) will get error result (nan)*Created by: Kohit*
I'm using lua5.2.
in line 429:
` local mant, expo = frexp(n)`
when n is **math.huge**, mant will be **-1.#IND**, which will lead to nan case(line 431),
that is,
`math.huge ~= unpack(pack(math.huge))`
----...*Created by: Kohit*
I'm using lua5.2.
in line 429:
` local mant, expo = frexp(n)`
when n is **math.huge**, mant will be **-1.#IND**, which will lead to nan case(line 431),
that is,
`math.huge ~= unpack(pack(math.huge))`
----update----
Lua 5.2.4(compiled by mingw gcc 6.3.0) and Lua 5.1.4 on windows 7(x86_64):
`> =math.frexp(math.huge)`
`-1.#IND -1`
https://framagit.org/fperrad/lua-MessagePack/-/issues/24maxinteger & mininteger for what?2018-10-17T16:12:56ZFrançois Perradmaxinteger & mininteger for what?*Created by: MichoChan*
i can't understand,please let me know,thanks.*Created by: MichoChan*
i can't understand,please let me know,thanks.