Skip to content

Conversation

moteus
Copy link

@moteus moteus commented May 27, 2014

Now pack() raise error but unpack("") return nothing.
I use cmsgpack to RPC so this is convinient to be able call ret = mp.pack( fn(...) ) and pass returns values as is.

moteus and others added 9 commits May 23, 2014 15:25
The problem occurs when lua_Number is double and lua_Integer is int32
In this case `mp.unpack(mp.pack(0xFFFFFFFF)) == -1`
The problem occurs when lua_Number is double and lua_Integer is int32
In this case `mp.unpack(mp.pack(0xFFFFFFFF)) == -1`

(Originally each sizeof() check was for sizeof < 64, which didn't make sense.
 Committer changed it to check for sizeof == 4 instead.)
The 0xFFFFFFFF test can potentially fail on 32 bit systems if
our internal conversions are casting to wrong Lua types.
lua_Integer != lua_Number
…-tests' into add-streaming-and-refactor-and-tests
@mattsta mattsta force-pushed the add-streaming-and-refactor-and-tests branch 5 times, most recently from 23d6f07 to afbc009 Compare November 25, 2014 03:57
@moteus
Copy link
Author

moteus commented Nov 25, 2014

What do you think. This PR is useless now but it quite simple change.
moteus@5f05d93.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants