Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
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
Revert "Try hard not to convert everything to Object"
This reverts commit 00e4030.
  • Loading branch information
filmor committed Sep 27, 2019
commit cf18983991e44bccf3b79bcd58beea349e9e8562
2 changes: 1 addition & 1 deletion src/runtime/converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ internal static IntPtr ToPython(object value, Type type)
// type is. we'd rather have the object bound to the actual
// implementing class.

type = type == null || type == typeof(object) ? value.GetType() : type;
type = type ?? value.GetType();

TypeCode tc = Type.GetTypeCode(type);

Expand Down