You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
You're declaring @cfunction with type Ref{Minifier}, but calling it from ccall with type Ref{Minifier{IOBuffer}}. This is invalid: you must pass the same type in both places. One valid options would be to use Any in both places. Another valid option would be to use Ref{T} in both places (as is already being done in ccall) and allocating the specialized cfunction for the actual Context instance by defining as such:
functioncb_map_start(ctx::T) where T <:Contextreturn@cfunction on_map_start Cint (Ref{T},)
end
The text was updated successfully, but these errors were encountered:
You're declaring
@cfunction
with typeRef{Minifier}
, but calling it fromccall
with typeRef{Minifier{IOBuffer}}
. This is invalid: you must pass the same type in both places. One valid options would be to useAny
in both places. Another valid option would be to useRef{T}
in both places (as is already being done inccall
) and allocating the specialized cfunction for the actual Context instance by defining as such:The text was updated successfully, but these errors were encountered: