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: FFI type mismatches between i8 and c_char #1128

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lakshh07
Copy link

@lakshh07 lakshh07 commented Feb 4, 2025

This PR fixes build errors related to type mismatches in the FFI interface.
Specifically, it changes function signatures to consistently use libc::c_char
instead of i8 for C string pointers.

Changes:

  • Changed return types from *mut i8 to *mut c_char in extract_links, extract_metadata, and transform_html
  • Changed parameter type in free_string from *mut i8 to *mut c_char
  • Ensures type consistency across the FFI boundary

The changes fix build errors where the compiler expected *mut i8 but found *mut u8.

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