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: use std::ffi::c_char instead of platform specific int #66

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

dekobon
Copy link
Contributor

@dekobon dekobon commented Mar 6, 2024

Proposed changes

This change reverts a previous change that did platform detection and set a type correspondingly to u8 or i8. By using std::ffi::c_char we get a portable way to do the same thing.

This PR fixes a shortcoming with the change in commit: d66f341

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

This change reverts a previous change that did platform
detection and set a type correspondingly to u8 or i8. By
using std::ffi::c_char we get a portable way to do the
same thing.
@dekobon
Copy link
Contributor Author

dekobon commented Mar 6, 2024

@bavshin-f5 Thank you for the correction regarding the type usage.

@dekobon dekobon merged commit 74792b0 into nginx:master Mar 6, 2024
5 of 6 checks passed
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.

1 participant