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 examples that fail to compile #62

Merged
merged 3 commits into from
Mar 5, 2024

Conversation

dekobon
Copy link
Contributor

@dekobon dekobon commented Mar 5, 2024

Proposed changes

This PR seeks to fix the examples source files that fail to compile on arm64.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have written my commit messages in the Conventional Commits format.
  • I have read the CONTRIBUTING doc
  • I have added tests (when possible) that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto master
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@dekobon dekobon force-pushed the fix-for-nginx-1.24.0 branch 3 times, most recently from 8a31955 to 2665c31 Compare March 5, 2024 21:53
dekobon added 2 commits March 5, 2024 13:58
Casts of pointer types are platform specific. This
change adds a platform specific type that is coded
for x86_64 or aarch64.
@dekobon dekobon force-pushed the fix-for-nginx-1.24.0 branch from 2665c31 to 14b61b5 Compare March 5, 2024 21:58
@dekobon dekobon merged commit cad383f into nginx:master Mar 5, 2024
5 of 6 checks passed
@dekobon dekobon deleted the fix-for-nginx-1.24.0 branch March 5, 2024 22:19
Comment on lines +66 to +70
#[cfg(target_arch = "aarch64")]
type Ptr = u8;

#[cfg(target_arch = "x86_64")]
type Ptr = i8;
Copy link
Member

Choose a reason for hiding this comment

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

The right type to use here would be std::ffi::c_char.

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