|
1 | 1 | // IMPORT_ARRAY() CALLED IN MODULE INIT |
2 | 2 | #ifndef PY_SSIZE_T_CLEAN |
3 | | -#define PY_SSIZE_T_CLEAN |
| 3 | + #define PY_SSIZE_T_CLEAN |
4 | 4 | #endif |
5 | 5 |
|
6 | 6 | #define NO_IMPORT_ARRAY |
@@ -368,8 +368,8 @@ PyObject* SiffReader::readFixedData() const { |
368 | 368 | PyDict_SetItemString(headerDict, "BigTiff", Py_BuildValue("O", params.bigtiff ? Py_True : Py_False)); |
369 | 369 | PyDict_SetItemString(headerDict, "IsSiff",Py_BuildValue("O", params.issiff ? Py_True : Py_False)); |
370 | 370 | 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))); |
373 | 373 | if (debug) { |
374 | 374 | PyDict_SetItemString(headerDict, "IFD pointers", Py_BuildValue("O",VectorToList(params.allIFDs))); |
375 | 375 | } |
|
0 commit comments