Skip to content
Prev Previous commit
Next Next commit
BorrowedReference instead of in NewReference
  • Loading branch information
amos402 committed Jul 30, 2020
commit d9628f7d89d982499731aa608437852642ed9be2
4 changes: 2 additions & 2 deletions src/runtime/pythonexception.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ public static void ThrowIfIsNull(IntPtr ob)
}
}

internal static void ThrowIfIsNull(in NewReference reference)
internal static void ThrowIfIsNull(BorrowedReference reference)
{
if (reference.IsNull())
if (reference.IsNull)
{
throw new PythonException();
}
Expand Down