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

jl_malloc ccall doesn't match header. #35

Open
nhz2 opened this issue Sep 28, 2024 · 0 comments
Open

jl_malloc ccall doesn't match header. #35

nhz2 opened this issue Sep 28, 2024 · 0 comments

Comments

@nhz2
Copy link
Member

nhz2 commented Sep 28, 2024

bzalloc(::Ptr{Cvoid}, m::Cint, n::Cint) = ccall(:jl_malloc, Ptr{Cvoid}, (Cint,), m*n)

Looking at https://github.com/JuliaLang/julia/blob/4a4ca9c815207a80ea81b884b196dfeafc3cb877/src/gc-interface.h#L162

jl_malloc has an input of Csize_t instead of Cint

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

No branches or pull requests

1 participant