Skip to content

Commit

Permalink
Merge branch 'pr/int32ints' into pr/allchanges
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed Dec 8, 2023
2 parents 82d5ec2 + 3dcf027 commit 4bb9ec6
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 @@ -431,8 +431,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 4bb9ec6

Please sign in to comment.