Skip to content

Commit f03b1c5

Browse files
authored
[Plugin] Fix compilation for msvc and python 3.10 (sofa-framework#266)
* fix compilation for msvc * change to real type
1 parent f7724cd commit f03b1c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugin/src/SofaPython3/DataHelper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ void copyScalar(BaseData* a, const AbstractTypeInfo& nfo, pybind11::array_t<T, p
221221
void* ptr = a->beginEditVoidPtr();
222222

223223
auto r = src.unchecked();
224-
for (ssize_t i = 0; i < r.shape(0); i++)
224+
for (pybind11::ssize_t i = 0; i < r.shape(0); i++)
225225
{
226-
for (ssize_t j = 0; j < r.shape(1); j++)
226+
for (pybind11::ssize_t j = 0; j < r.shape(1); j++)
227227
{
228228
nfo.setScalarValue( ptr, i*r.shape(1)+j, r(i,j) );
229229
}

0 commit comments

Comments
 (0)