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
6 changes: 2 additions & 4 deletions src/runtime/Util/OpsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,9 @@ internal static class EnumOps<T> where T : Enum

[ForbidPythonThreads]
#pragma warning disable IDE1006 // Naming Styles - must match Python
public static PyInt __int__(T value)
public static object __int__(T value)
#pragma warning restore IDE1006 // Naming Styles
=> IsUnsigned
? new PyInt(Convert.ToUInt64(value))
: new PyInt(Convert.ToInt64(value));
=> IsUnsigned ? Convert.ToUInt64(value) : Convert.ToInt64(value);

#region Arithmetic operators

Expand Down
Loading