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

Use size_t for character lengths with GFortran >= 8.x #508

Merged
merged 1 commit into from
Feb 22, 2018

Conversation

jabl
Copy link
Contributor

@jabl jabl commented Feb 22, 2018

GFortran 8.x uses size_t for character lengths instead of int. This
patch applies the same changes to OpenCoarrays. Also, the STOP and
ERROR STOP routines now take a plain int for the numeric exit code.

This fixes
#497.

This pull request (PR) is a:

  • Bug fix
  • Feature addition
  • Other, Please describe:

I certify that

  • I reviewed and followed the [contributing guidelines], including
    - Increasing test coverage for all feature-addition PRs
    - Increasing test coverage for all bug-fix PRs for which there
    does not already exist a related test that failed before the PR
    - At least maintaining test coverage for all other PRs
    - Ensuring that all tests pass when run locally
    - Naming PR to indicate work in progress (WIP) and to attach the PR
    to the appropriate bug report or feature request [issue]
    - White space (no trailing white space or white space errors may
    be introduced)
    - Commenting code where it is non-obvious and non-trivial
    - Logically atomic, self consistent and coherent commits
    - Commit message content
    - Waiting 24 hours before self-approving the PR to give another
    OpenCoarrays developer a chance to review my proposed code

GFortran 8.x uses size_t for character lengths instead of int. This
patch applies the same changes to OpenCoarrays. Also, the STOP and
ERROR STOP routines now take a plain int for the numeric exit code.

This fixes
sourceryinstitute#497.
@CLAassistant
Copy link

CLAassistant commented Feb 22, 2018

CLA assistant check
All committers have signed the CLA.

@jabl
Copy link
Contributor Author

jabl commented Feb 22, 2018

The corresponding GFortran changes are in r257894.

@codecov
Copy link

codecov bot commented Feb 22, 2018

Codecov Report

Merging #508 into master will decrease coverage by 0.01%.
The diff coverage is 11.76%.

@@            Coverage Diff             @@
##           master     #508      +/-   ##
==========================================
- Coverage   49.36%   49.35%   -0.02%     
==========================================
  Files           3        3              
  Lines        3087     3088       +1     
==========================================
  Hits         1524     1524              
- Misses       1563     1564       +1

@rouson
Copy link
Member

rouson commented Feb 22, 2018

LGTM
Thanks for the contribution, Janne!

Approved with PullApprove

@rouson rouson merged commit d88bfd0 into sourceryinstitute:master Feb 22, 2018
@zbeekman
Copy link
Collaborator

@jabl Many thanks for porting these changes over to OpenCoarrays! 💯

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

4 participants