Skip to content

Fix compilation on Android - #724

Closed
jhmaster (jhmaster2000) wants to merge 1 commit into
microsoft:masterfrom
jhmaster2000:patch-1
Closed

jhmaster (jhmaster2000) wants to merge 1 commit into
microsoft:masterfrom
jhmaster2000:patch-1

Conversation

@jhmaster2000

@jhmaster2000 jhmaster (jhmaster2000) commented Apr 10, 2023 •

Copy link
Copy Markdown

return mi_atomic_cas_strong_acq_rel(once, &expected, 1); // try to set to 1

The above line fails to compile on Android with incorrect function signature error caused by the 3rd argument, changing 1 to 1UL (explicit unsigned long) fixes it and allows successful compilation under aarch64 Android with Termux, using clang 15.0.7

@daanx
Daan (daanx) changed the base branch from master to dev April 14, 2023 16:38
@daanx
Daan (daanx) changed the base branch from dev to master April 14, 2023 16:45
@daanx

Copy link
Copy Markdown
Collaborator

Thanks so much jhmaster (@jhmaster2000) ! I fixed this manually as the pr was agains master (instead of dev); hope that is ok with you

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