Skip to content

Commit 62d41b6

Browse files
committed
Change gcguard key type
1 parent 4948f87 commit 62d41b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RbCall.jl/src/gc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const gcguard = Dict{RubyObject, Any}()
1+
const gcguard = Dict{RbPtr, Any}()

RbCall.jl/src/jlwrap.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ end
2828
function jlwrap_new(x::Any)::RubyObject
2929
obj = TypedData_Make_Struct(cJuliaWrapper, jlwrap_t, jlwrap_data_type)
3030
Base.unsafe_store!(Ptr{jlwrap_t}(RTYPEDDATA_DATA(obj)), jlwrap_t(obj, x))
31-
gcguard[obj] = x
31+
gcguard[RbPtr(obj)] = x
3232
return obj
3333
end
3434

0 commit comments

Comments
 (0)