Skip to content

Commit c2e65f1

Browse files
committed
Fix signedness for clang
1 parent b4ca366 commit c2e65f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/pybind11/pybind11.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ class cpp_function : public function {
10191019
ssize_t i = keyword_index(kwnames_in, arg_rec.name);
10201020
if (i >= 0) {
10211021
value = args_in_arr[n_args_in + static_cast<size_t>(i)];
1022-
used_kwargs.set(i, true);
1022+
used_kwargs.set(static_cast<size_t>(i), true);
10231023
used_kwargs_count++;
10241024
}
10251025
}

0 commit comments

Comments
 (0)