Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52f9b5f commit e9b3f74Copy full SHA for e9b3f74
1 file changed
Python/ceval.c
@@ -514,7 +514,11 @@ tstate_set_stack(PyThreadState *tstate,
514
uintptr_t base, uintptr_t top)
515
{
516
assert(base < top);
517
+#if _Py_STACK_GROWS_DOWN
518
assert((top - base) >= _PyOS_MIN_STACK_SIZE);
519
+#else
520
+ assert((base - top) >= _PyOS_MIN_STACK_SIZE);
521
+#endif
522
523
#ifdef _Py_THREAD_SANITIZER
524
// Thread sanitizer crashes if we use more than half the stack.
0 commit comments