Skip to content

Commit d9628f7

Browse files
committed
BorrowedReference instead of in NewReference
1 parent 838dfc2 commit d9628f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/pythonexception.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ public static void ThrowIfIsNull(IntPtr ob)
253253
}
254254
}
255255

256-
internal static void ThrowIfIsNull(in NewReference reference)
256+
internal static void ThrowIfIsNull(BorrowedReference reference)
257257
{
258-
if (reference.IsNull())
258+
if (reference.IsNull)
259259
{
260260
throw new PythonException();
261261
}

0 commit comments

Comments
 (0)