File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1081,10 +1081,11 @@ class cpp_function : public function {
10811081 dict kwargs;
10821082 for (size_t i = 0 ; i < used_kwargs.size (); ++i) {
10831083 if (!used_kwargs[i]) {
1084- // Fetch value before indexing into kwargs to ensure well-defined
1085- // evaluation order (MSVC C4866).
1086- PyObject *const arg_in_arr = args_in_arr[n_args_in + i];
1087- kwargs[PyTuple_GET_ITEM (kwnames_in, i)] = arg_in_arr;
1084+ // Cast values into handles before indexing into kwargs to ensure
1085+ // well-defined evaluation order (MSVC C4866).
1086+ handle arg_in_arr = args_in_arr[n_args_in + i],
1087+ kwname = PyTuple_GET_ITEM (kwnames_in, i);
1088+ kwargs[kwname] = arg_in_arr;
10881089 }
10891090 }
10901091 call.args .push_back (kwargs);
You can’t perform that action at this time.
0 commit comments