Skip to content

Commit 9ca5df6

Browse files
py_ssize_t?
1 parent e70f361 commit 9ca5df6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

siffreadermodule/src/siffreader/siffreader.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// IMPORT_ARRAY() CALLED IN MODULE INIT
22
#ifndef PY_SSIZE_T_CLEAN
3-
#define PY_SSIZE_T_CLEAN
3+
#define PY_SSIZE_T_CLEAN
44
#endif
55

66
#define NO_IMPORT_ARRAY
@@ -368,8 +368,8 @@ PyObject* SiffReader::readFixedData() const {
368368
PyDict_SetItemString(headerDict, "BigTiff", Py_BuildValue("O", params.bigtiff ? Py_True : Py_False));
369369
PyDict_SetItemString(headerDict, "IsSiff",Py_BuildValue("O", params.issiff ? Py_True : Py_False));
370370
PyDict_SetItemString(headerDict, "Number of frames", Py_BuildValue("n", params.numFrames));
371-
PyDict_SetItemString(headerDict, "Non-varying frame data", Py_BuildValue("s#",params.headerstring.c_str(),Py_ssize_clean_t(params.NVFD_length)));
372-
PyDict_SetItemString(headerDict, "ROI string", Py_BuildValue("s#",params.ROI_string.c_str(),Py_ssize_clean_t(params.ROI_string_length)));
371+
PyDict_SetItemString(headerDict, "Non-varying frame data", Py_BuildValue("s#",params.headerstring.c_str(),Py_ssize_t(params.NVFD_length)));
372+
PyDict_SetItemString(headerDict, "ROI string", Py_BuildValue("s#",params.ROI_string.c_str(),Py_ssize_t(params.ROI_string_length)));
373373
if (debug) {
374374
PyDict_SetItemString(headerDict, "IFD pointers", Py_BuildValue("O",VectorToList(params.allIFDs)));
375375
}

0 commit comments

Comments
 (0)