Skip to content

Commit b942b62

Browse files
committed
Avoid ICC segfault with py::arg()
1 parent 0e89b14 commit b942b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_builtin_casters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ TEST_SUBMODULE(builtin_casters, m) {
100100

101101
// test_int_convert
102102
m.def("int_passthrough", [](int arg) { return arg; });
103-
m.def("int_passthrough_noconvert", [](int arg) { return arg; }, py::arg().noconvert());
103+
m.def("int_passthrough_noconvert", [](int arg) { return arg; }, py::arg{}.noconvert());
104104

105105
// test_tuple
106106
m.def("pair_passthrough", [](std::pair<bool, std::string> input) {

0 commit comments

Comments
 (0)