Open CapsAdmin opened 8 years ago
Numbers created with the ffi? I wonder how I can tell those apart from other cdata.
I guess I could just create a mapping of all known C type numbers ('uint64_t, etc) and use
ffi.typeof`. I hope there is an easier way.
at the moment _G.type will return cdata on numbers and so the ffi.string code in msgpack.lua will error with
bad argument #1 to 'string' (cannot convert '*number type*' to 'const void *')