Skip to content

Commit

Permalink
int32 primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed Dec 20, 2023
1 parent 0a5a63c commit 6110e6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/runtime/Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ internal static bool ToManagedValue(BorrowedReference value, Type obType,

if (Runtime.PyInt_Check(value))
{
result = new PyInt(value);
return true;
return ToPrimitive(value, int32Type, out result, setError);
}

result = new PyObject(value);
Expand Down

0 comments on commit 6110e6d

Please sign in to comment.