Skip to content

Commit ca5ea1e

Browse files
committed
Oops, need to use ptr() here
1 parent 7cbc3fc commit ca5ea1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_embed/test_interpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ TEST_CASE("Threads") {
638638
threads.emplace_back([&]() {
639639
py::gil_scoped_acquire gil{};
640640
#ifdef Py_GIL_DISABLED
641-
Py_BEGIN_CRITICAL_SECTION(locals);
641+
Py_BEGIN_CRITICAL_SECTION(locals.ptr());
642642
locals["count"] = locals["count"].cast<int>() + 1;
643643
Py_END_CRITICAL_SECTION();
644644
#else

0 commit comments

Comments
 (0)