Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get wrong double value using IndirectDouble to serialize. #8340

Open
wang21825227 opened this issue Jun 25, 2024 · 0 comments
Open

Get wrong double value using IndirectDouble to serialize. #8340

wang21825227 opened this issue Jun 25, 2024 · 0 comments

Comments

@wang21825227
Copy link

wang21825227 commented Jun 25, 2024

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 wang21825227 changed the title Get wrong double value using IndirectDouble toin flexbuffers. Get wrong double value using IndirectDouble to serialize. Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant