flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

Get wrong double value using IndirectDouble to serialize.

Open wang21825227 opened this issue 1 year ago • 0 comments

FlatBuffers version: 24.3.25

flexbuffers::Builder fbb; fbb.IndirectDouble(1.5); fbb.Finish(); vector<uint8_t> buffer = fbb.GetBuffer(); Reference root = GetRoot(buffer); double val = root.AsDouble();

When the double value is x.5, the deserialized value ​​is 0.

wang21825227 avatar Jun 25 '24 10:06 wang21825227