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

Integers to expansion JSON output were cast wrongly #3857

Merged
merged 2 commits into from Dec 6, 2022

Conversation

nilsnolde
Copy link
Member

Small bug in expansion endpoint, I accidentally cast it wrong before..

}
if (exp_props.count(Options_ExpansionProperties_distances)) {
Pointer(kPropPaths[Options_ExpansionProperties_distances])
.Get(dom)
->GetArray()
.PushBack(Value{}.SetInt(distance), a);
.PushBack(Value{}.SetUint(distance), a);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

distance is already a uint32_t

@nilsnolde nilsnolde merged commit 591f3e6 into master Dec 6, 2022
@nilsnolde nilsnolde deleted the nn-expansion-fix branch December 6, 2022 17:05
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

Successfully merging this pull request may close these issues.

None yet

2 participants