Skip to content

Commit

Permalink
Fix addCallback binding
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheitman committed May 6, 2024
1 parent 722d900 commit d657eea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/libtriton/bindings/python/objects/pyTritonContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,13 +503,10 @@ namespace triton {
if (PyMethod_Check(function)) {
cb_self = PyMethod_GET_SELF(function);
cb = PyMethod_GET_FUNCTION(function);

Py_INCREF(cb_self);
}
else {
cb = function;
}
Py_INCREF(cb);

try {
switch (static_cast<triton::callbacks::callback_e>(PyLong_AsUint32(mode))) {
Expand Down

0 comments on commit d657eea

Please sign in to comment.