Skip to content

fix: making OpenDAL compilable on 32hf platforms#3188

Merged
Xuanwo merged 3 commits intoapache:mainfrom
ClSlaid:port/32hf
Sep 26, 2023
Merged

fix: making OpenDAL compilable on 32hf platforms#3188
Xuanwo merged 3 commits intoapache:mainfrom
ClSlaid:port/32hf

Conversation

@ClSlaid
Copy link
Copy Markdown
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 <cailue@bupt.edu.cn>
@ClSlaid ClSlaid requested a review from Xuanwo as a code owner September 26, 2023 07:17
@ClSlaid
Copy link
Copy Markdown
Contributor Author

ClSlaid commented Sep 26, 2023

JNI binding breaks.

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

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Comment thread core/src/services/cos/backend.rs Outdated
@Xuanwo Xuanwo changed the title porting: making OpenDAL compilable on 32hf platforms fix: making OpenDAL compilable on 32hf platforms Sep 26, 2023
@github-actions github-actions Bot added the releases-note/fix The PR fixes a bug or has a title that begins with "fix" label Sep 26, 2023
this should make code clean

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Copy link
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/fix The PR fixes a bug or has a title that begins with "fix"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants