Skip to content

Commit ef58dc0

Browse files
committed
fix #448, update to JuliaLang/julia#41137
1 parent 407fa70 commit ef58dc0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/interpret.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,12 @@ function evaluate_methoddef(frame, node)
276276
length(node.args) == 1 && return f
277277
sig = @lookup(frame, node.args[2])::SimpleVector
278278
body = @lookup(frame, node.args[3])
279-
ccall(:jl_method_def, Cvoid, (Any, Any, Any), sig, body, moduleof(frame))
279+
# branching on https://github.com/JuliaLang/julia/pull/41137
280+
@static if isdefined(Core.Compiler, :OverlayMethodTable)
281+
ccall(:jl_method_def, Cvoid, (Any,Ptr{Cvoid},Any,Any), sig, C_NULL, body, moduleof(frame))
282+
else
283+
ccall(:jl_method_def, Cvoid, (Any, Any, Any), sig, body, moduleof(frame))
284+
end
280285
return f
281286
end
282287

0 commit comments

Comments
 (0)