Skip to content

Commit

Permalink
Revert "test: force trigger segfault"
Browse files Browse the repository at this point in the history
This reverts commit 3ab4467.
  • Loading branch information
XuehaiPan committed Nov 5, 2024
1 parent 87db51a commit 1646197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/optree/treespec.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ using ssize_t = py::ssize_t;
#define Py_C_RECURSION_LIMIT 1000
#endif
#ifndef PYPY_VERSION
constexpr ssize_t MAX_RECURSION_DEPTH = 100000;
constexpr ssize_t MAX_RECURSION_DEPTH = std::min(1000, Py_C_RECURSION_LIMIT);
#else
constexpr ssize_t MAX_RECURSION_DEPTH = 100000;
constexpr ssize_t MAX_RECURSION_DEPTH = std::min(500, Py_C_RECURSION_LIMIT);
#endif

// Test whether the given object is a leaf node.
Expand Down

0 comments on commit 1646197

Please sign in to comment.