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

fix wrong sign of char in MF #14797

Merged
merged 1 commit into from Feb 15, 2023
Merged

fix wrong sign of char in MF #14797

merged 1 commit into from Feb 15, 2023

Conversation

tjhei
Copy link
Member

@tjhei tjhei commented Feb 14, 2023

On some ARM systems char defaults to unsigned char, which will break the matrix free face loop. Fix this by being explicit.

Fixes:
/home/ubuntu/dealii-9.4.2/include/deal.II/matrix_free/face_setup_internal.h:522:35: warning: comparison is always false due to limited range of data type [-Wtype-limits]

On ARM char defaults to unsigned char, which will break the matrix free
face loop. Fix this by being explicit.

Fixes:
/home/ubuntu/dealii-9.4.2/include/deal.II/matrix_free/face_setup_internal.h:522:35:
warning: comparison is always false due to limited range of data type
[-Wtype-limits]
@tjhei
Copy link
Member Author

tjhei commented Feb 14, 2023

... and yes, the standard says char can be signed or unsigned. Sigh.

@kronbichler
Copy link
Member

/rebuild

@masterleinad masterleinad merged commit 8b2974b into dealii:master Feb 15, 2023
@tjhei tjhei deleted the signed_char branch February 15, 2023 13:39
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.

None yet

4 participants