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

Fixes badval propagation to support all badval configurations #190

Merged
merged 1 commit into from Jul 17, 2016

Conversation

zmughal
Copy link
Member

@zmughal zmughal commented Jul 10, 2016

The changes in #188 broke the
build for all cases of BADVAL_USENAN xor BADVAL_PER_PDL.

This was because the checking for badvalues when copying in
pdl_kludge_copy_* did not take into account these variations in
accessing and setting the badvalue.

For example, a simple comparison using == is not valid when NaN values are being compared. Here we need to use !finite(...) to make the comparison if the type can use NaN values.

Related thread: http://comments.gmane.org/gmane.comp.lang.perl.pdl.devel/6862.

@coveralls
Copy link

coveralls commented Jul 10, 2016

Coverage Status

Coverage remained the same at 62.696% when pulling ca57882 on badval-constructor-per-pdl into dcebe92 on master.

@coveralls
Copy link

coveralls commented Jul 10, 2016

Coverage Status

Coverage remained the same at 62.696% when pulling 7123a3b on badval-constructor-per-pdl into dcebe92 on master.

@coveralls
Copy link

coveralls commented Jul 10, 2016

Coverage Status

Coverage remained the same at 62.696% when pulling 42942d6 on badval-constructor-per-pdl into dcebe92 on master.

@zmughal zmughal self-assigned this Jul 10, 2016
@zmughal zmughal force-pushed the badval-constructor-per-pdl branch from 42942d6 to d722c4e Compare July 11, 2016 07:48
@coveralls
Copy link

coveralls commented Jul 11, 2016

Coverage Status

Coverage remained the same at 62.696% when pulling d722c4e on badval-constructor-per-pdl into dcebe92 on master.

The changes in <#188> broke the
build for all cases of `BADVAL_USENAN` xor `BADVAL_PER_PDL`.

This was because the checking for badvalues when copying in
`pdl_kludge_copy_*` did not take into account these variations in
accessing and setting the badvalue.

For example, a simple comparison using `==` is not valid when NaN
values are being compared. Here we need to use `!finite(...)` to make
the comparison if the type can use NaN values.
@zmughal zmughal force-pushed the badval-constructor-per-pdl branch from d722c4e to 015d9fe Compare July 11, 2016 19:16
@coveralls
Copy link

coveralls commented Jul 11, 2016

Coverage Status

Coverage remained the same at 62.696% when pulling 015d9fe on badval-constructor-per-pdl into dcebe92 on master.

@zmughal zmughal merged commit 015d9fe into master Jul 17, 2016
@zmughal zmughal deleted the badval-constructor-per-pdl branch July 17, 2016 18:37
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