Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Omitted redundant type check
  • Loading branch information
tminka committed Jan 21, 2021
commit 7bf5c4d7bc24038547fe78aaf8be20136b346c8d
7 changes: 1 addition & 6 deletions src/runtime/converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -698,12 +698,7 @@ private static bool ToPrimitive(IntPtr value, Type obType, out object result, bo

case TypeCode.UInt64:
{
op = value;
if (Runtime.PyObject_TYPE(value) != Runtime.PyLongType)
{
goto type_error;
}
ulong num = Runtime.PyLong_AsUnsignedLongLong(op);
ulong num = Runtime.PyLong_AsUnsignedLongLong(value);
if (num == ulong.MaxValue && Exceptions.ErrorOccurred())
{
goto convert_error;
Expand Down