Skip to content

Commit

Permalink
Fix ssize_t on Windows (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart authored Nov 8, 2021
1 parent fe95acb commit e35b4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct PydelatinTriangulator {
void setData(const py::array_t<float> &data_) {
// x must have ndim = 1; can be non-writeable
auto r = data_.unchecked<1>();
ssize_t size = r.shape(0);
Py_ssize_t size = r.shape(0);

std::vector<float> data__(size);

Expand Down

0 comments on commit e35b4e2

Please sign in to comment.