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 the 32 bit builds by changing a type cast #1202

Merged
merged 1 commit into from
Jan 1, 2024

Conversation

Eskaan
Copy link
Contributor

@Eskaan Eskaan commented Dec 30, 2023

Description

i64::from was replaced by a direct as type cast. to fix the 32bit build error expressed in the issue below.

I don't expect this change to cause any problems as we are casting a smaller type (u32) into a larger one (c_long should be i64-eqivalent).

Compilation was tested on i686-unknown-linux-gnu toolchain.

Fixes #1201

Type of change

  • Development change (no change visible to user)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation only update (no change to the factual codebase)
  • This change requires a documentation update

Checklist:

  • Ran make test locally with no errors or warnings reported
    Note: To fully reproduce CI checks, you will need to run make test-full-nix. Usually, this is not necessary.

`i64::from` was replaced by a direct `as` type cast.

Tested on i686-unknown-linux-gnu
@mautamu mautamu merged commit 7525728 into leftwm:main Jan 1, 2024
8 checks passed
mautamu added a commit to mautamu/leftwm that referenced this pull request Jan 1, 2024
@Eskaan Eskaan deleted the fix-32bit-type-cast branch January 1, 2024 17:48
mautamu added a commit that referenced this pull request Jan 8, 2024
* chore: clippy fixes

* fix: override clippy lint #1202

* chore: add comment [no ci]
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

2 participants