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

Do not depend on bool being one byte #176

Merged
merged 1 commit into from
May 20, 2024

Conversation

afalkenhahn
Copy link

@afalkenhahn afalkenhahn commented May 19, 2024

The size of the bool data type is implementation-defined. I'm on a platform where gcc defaults to bool being 4 bytes, not 1. Thus we should use u8 here instead of bool to make sure the code is portable.

The size of the bool data type is implemented-defined. I'm using a platform where gcc defaults to bool being 4 bytes, not 1. Thus we should use u8 here instead of bool to make sure the code is portable.
@NanoMichael NanoMichael merged commit 109dab7 into NanoMichael:openmath May 20, 2024
5 checks passed
@afalkenhahn afalkenhahn deleted the patch-1 branch May 20, 2024 11:34
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.

2 participants