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
Next Next commit
update
  • Loading branch information
koubaa committed Feb 16, 2021
commit 1600fdc9deb17ba5afc8c7c2e2bf495e0070c3e8
2 changes: 1 addition & 1 deletion src/runtime/CollectionWrappers/ListWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void Insert(int index, T item)
if (pyItem == IntPtr.Zero)
throw new Exception("failed to insert item");
Comment thread
koubaa marked this conversation as resolved.
Outdated

var result = Runtime.PyList_Insert(pyObject.Handle, index, pyItem);
var result = Runtime.PyList_Insert(pyObject.Reference, index, pyItem);
Runtime.XDecref(pyItem);
Comment thread
koubaa marked this conversation as resolved.
Outdated
if (result == -1)
throw new Exception("failed to insert item");
Comment thread
koubaa marked this conversation as resolved.
Outdated
Expand Down