Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yelite committed Oct 27, 2023
1 parent d9f3029 commit f37c3e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/registry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ class EnvCAPIRegistry {
}

void DecRef(void* python_obj) {
ICHECK(py_inc_ref) << "Attempted to call Py_IncRef through EnvCAPIRegistry, "
<< "but Py_IncRef wasn't registered";
(*py_inc_ref)(python_obj);
ICHECK(py_dec_ref) << "Attempted to call Py_DecRef through EnvCAPIRegistry, "
<< "but Py_DecRef wasn't registered";
(*py_dec_ref)(python_obj);
}

private:
Expand Down

0 comments on commit f37c3e5

Please sign in to comment.