Skip to content

Commit 9149170

Browse files
tkfstevengj
authored andcommitted
Fix pyraise (#675)
1 parent 2fcc57e commit 9149170

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/exception.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ function pyraise(e::PyError, ::Vector = [])
180180
ccall((@pysym :PyErr_Restore), Cvoid, (PyPtr, PyPtr, PyPtr),
181181
e.T, e.val, e.traceback)
182182
# refs were stolen
183-
setfield!(e.T, :o, C_NULL)
184-
setfield!(e.val, :o, C_NULL)
185-
setfield!(e.traceback, :o, C_NULL)
183+
setfield!(e.T, :o, PyPtr_NULL)
184+
setfield!(e.val, :o, PyPtr_NULL)
185+
setfield!(e.traceback, :o, PyPtr_NULL)
186186
end
187187

188188
"""

0 commit comments

Comments
 (0)