Skip to content

Get wrong double value using IndirectDouble to serialize. #8340

Open

Description

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions