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

Update for g2cio.c and test #589

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

EricEngle-NOAA
Copy link
Contributor

In g2c_file_io(), define chat *bvar as signed char. The generic char on majority of platforms is signed, except ARM Linux where it is unsigned.

Updated test for 1-byte ints to add a fourth read/write and test special condition where the value read will not equal what is written that mimics Arm Linux.

In g2c_file_io(), define chat *bvar as signed char. The generic
char on majority of platforms is signed, except ARM Linux where it
is unsigned.

Updated test for 1-byte ints to add a fourth read/write and test
special condition where the value read will not equal what is
written that mimics Arm Linux.
Return last arg to char.
For GCC, adding "-Wno-error=pointer-sign" to allow that behavior.
@EricEngle-NOAA
Copy link
Contributor Author

@edhartnett After closing #583, I have this new PR. IMO, the added logic to tst_io.c is sufficient for what you requested.
To make this work, I needed to add -Wno-error=pointer-sign compiler flag for tst_io.c

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.

1 participant