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

Issue 159 #180

Merged
merged 43 commits into from
Dec 30, 2015
Merged

Issue 159 #180

merged 43 commits into from
Dec 30, 2015

Conversation

WardF
Copy link
Member

@WardF WardF commented Dec 28, 2015

Addressing two issues on ARM, merging via pull request so that @dmh has a chance to review it. Issues were originally reported by @opoplawski at issue #159.

  1. char is unsigned by default. This fouled some of our tests.
  2. Converting double to unsigned int (which throws an NC_ERANGE error under normal circumstances but is still tested for and technically permitted) is undefined behavior.

The former issue has been addressed, and the second issue (while still undefined) now results in behavior consistent with what's observed on Intel platforms.

…butes in nc_test, when -funsigned-char is set in CFLAGS.
… overly broad; I will refine it once I've had a chance to read up on m4.
@WardF WardF added this to the 4.4.0 milestone Dec 28, 2015
@WardF WardF self-assigned this Dec 28, 2015
@WardF
Copy link
Member Author

WardF commented Dec 29, 2015

Many of the places where I use __arm__ arm instead of __UNSIGNED_CHAR__ are because the tests don't fail on intel-based platforms regardless of whether the char is signed or not. I'm still up in the air on this, it feels like it should be __UNSIGNED_CHAR__ but functionally, __arm__ is more correct.

@WardF
Copy link
Member Author

WardF commented Dec 30, 2015

Ok, I've also updated our travis-ci configuration to run tests both with -fsigned-char and -funsigned-char to hopefully catch this sort of unexpected issue in the future. I'm going to go ahead and merge, but if this ends up being overly broad we can address that.

@WardF WardF merged commit 09ab3fc into master Dec 30, 2015
@WardF WardF deleted the unsigned-char-gh159 branch January 8, 2016 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant