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

Support cast of double -> float of NaN. #2240

Merged
merged 2 commits into from Oct 23, 2018
Merged

Support cast of double -> float of NaN. #2240

merged 2 commits into from Oct 23, 2018

Conversation

abellgithub
Copy link
Contributor

Close #2239

PointViewPtr view(new PointView(table));
const float scanAngleRank = std::numeric_limits<float>::quiet_NaN();
view->setField(Dimension::Id::ScanAngleRank, 0, scanAngleRank);
float retrieved = view->getFieldAs<float>(Dimension::Id::ScanAngleRank, 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this testing that the last line doesn't throw? If so, EXPECT_NO_THROW would make it more explicit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

An oversight. Thanks.

@abellgithub abellgithub merged commit 64abe7b into master Oct 23, 2018
@abellgithub abellgithub deleted the issue-2239 branch October 23, 2018 19:31
abellgithub added a commit that referenced this pull request Oct 24, 2018
* Support cast of double -> float of NaN.
Close #2239

* Actually test something in the test.
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