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 libpcre2 bindings with arch-dependent types (SizeT) #13088

Merged

Conversation

straight-shoota
Copy link
Member

@straight-shoota straight-shoota commented Feb 18, 2023

The lib function get_ovector_pointer returns LibC::SizeT, not UInt64. They happen to be identical on 64-bit architectures, but not on 32-bit. This fix uses the correct type in Regex::MatchData.

I'm also pinning wasm32_test to use PCRE because the wasm libraries from https://github.com/lbguilherme/wasm-libs do not provide PCRE2 yet.

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:text labels Feb 18, 2023
@straight-shoota straight-shoota self-assigned this Feb 18, 2023
@straight-shoota straight-shoota added this to the 1.8.0 milestone Feb 18, 2023
@straight-shoota straight-shoota changed the title Fix PCRE2 bindings on 32-bit arch Fix libpcre2 bindings with arch-dependent types (SizeT) Feb 19, 2023
@straight-shoota straight-shoota changed the base branch from master to fix/pcre2-meta February 22, 2023 07:35
@straight-shoota straight-shoota merged commit 27852e0 into crystal-lang:fix/pcre2-meta Feb 22, 2023
@straight-shoota straight-shoota deleted the fix/pcre2-32-bit branch February 22, 2023 08:35
@straight-shoota straight-shoota modified the milestones: 1.8.0, 1.7.3 Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:text
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants