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(rv32_conversions): Fix errors with literal sizes #183

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

miguelafsilva5
Copy link
Member

PR Description

The PR #117 introduced some compiling errors for riscv32 builds.
This PR fixes those errors, which were related to using 64-bit literals for operations/functions that needed 32-bit values.

When compiling for RV32, the expected size of the argument used is 32-bit.
Using 1ULL forces the argument to be 64-bit since shift operations take the
size of the largest operand. This results in the error Werror=arith-conversion
when compiling for RV32

Signed-off-by: Miguel Silva <[email protected]>
@josecm josecm self-assigned this Oct 14, 2024
@josecm josecm merged commit 3c244e5 into main Oct 18, 2024
31 checks passed
@josecm josecm deleted the fix/rv32_conversions branch October 18, 2024 09:57
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.

3 participants