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: making OpenDAL compilable on 32hf platforms #3188

Merged
merged 3 commits into from
Sep 26, 2023
Merged

Conversation

ClSlaid
Copy link
Contributor

@ClSlaid ClSlaid commented Sep 26, 2023

This patch should allow OpenDAL to compile on 32 bit platforms (hard float) with minium side effects.

changes(updated):

  • restrict usize literals in some services from exceeding the u32::MAX.

changes(deprecated):

  • opendal::types::capability::Capability:
    • write_multi_max_size
    • write_multi_min_size
    • write_multi_align_size
      Option<usize> -> Option<u64>

This patch should allow OpenDAL to compile on 32 bit platforms (hard float)
with minium side effects.

changes:

- opendal::types::capability::Capability:
    - write_multi_max_size
    - write_multi_min_size
    - write_multi_align_size
    Option<usize> -> Option<u64>

Signed-off-by: ClSlaid <[email protected]>
@ClSlaid
Copy link
Contributor Author

ClSlaid commented Sep 26, 2023

JNI binding breaks.

Maybe merely restricting some usize literals from exceeding the limit should also work.

@Xuanwo Xuanwo changed the title porting: making OpenDAL compilable on 32hf platforms fix: making OpenDAL compilable on 32hf platforms Sep 26, 2023
this should make code clean

Signed-off-by: ClSlaid <[email protected]>
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Xuanwo Xuanwo merged commit 31b5620 into apache:main Sep 26, 2023
39 checks passed
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.

2 participants