-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Labels
aspect: binary formatsBSON, CBOR, MessagePack, UBJSONBSON, CBOR, MessagePack, UBJSONconfirmedkind: bugrelease item: 🔨 further changesolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Milestone
Description
Example:
vector<float> buf(1024);
nlohmann::json j = {{"buf", buf}};
vector<uint8_t> msgpack = nlohmann::json::to_msgpack(j);
cout << msgpack.size() << endl;
I would expect this to print roughly ~ 5000, instead it is printing ~ 9000.
Going through GDB, it is treating the float type as 64bit.
Metadata
Metadata
Assignees
Labels
aspect: binary formatsBSON, CBOR, MessagePack, UBJSONBSON, CBOR, MessagePack, UBJSONconfirmedkind: bugrelease item: 🔨 further changesolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation