Skip to content

Commit adeeee7

Browse files
committed
tests: one more int cast
Signed-off-by: Henry Schreiner <[email protected]>
1 parent f74d23a commit adeeee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_kwargs_and_defaults.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ TEST_SUBMODULE(kwargs_and_defaults, m) {
172172
py::tuple t(a.size());
173173
for (size_t i = 0; i < a.size(); i++) {
174174
// Use raw Python API here to avoid an extra, intermediate incref on the tuple item:
175-
t[i] = (int) Py_REFCNT(PyTuple_GET_ITEM(a.ptr(), static_cast<py::ssize_t>(i)));
175+
t[i] = Py_REFCNT(PyTuple_GET_ITEM(a.ptr(), static_cast<py::ssize_t>(i)));
176176
}
177177
return t;
178178
});

0 commit comments

Comments
 (0)