yida / msgpack-matlab

MessagePack for Matlab
Apache License 2.0
8 stars 7 forks source link

mex return type not consistent #1

Open yida opened 11 years ago

yida commented 11 years ago

In some languages, packing will auto select data type based on values. For instance, 4.000 will be packed as uint8. So when we unpack that in Matlab, unpacker auto detects msg type and push it as uint8 to Matlab. Since we expected double type number, it might cause problem with matlab function that requires double