vcpkg/ports/openimageio/fix-msvc-build.patch
Pierre Wendling 278f429069
[openimageio] Update to 2.4.11.1 (#31489)
* [openimageio] Update to 2.4.11.1.

* [openimageio] Add upstream patch to fix MSVC build

* [openimageio] Update baseline.
2023-05-18 11:19:03 -07:00

14 lines
678 B
Diff

diff --git a/src/python/py_oiio.cpp b/src/python/py_oiio.cpp
index 6031d2c23..e71105da5 100644
--- a/src/python/py_oiio.cpp
+++ b/src/python/py_oiio.cpp
@@ -153,7 +153,7 @@ oiio_bufinfo::oiio_bufinfo(const py::buffer_info& pybuf, int nchans, int width,
format = TypeUnknown; // No idea what's going on -- error
error = Strutil::fmt::format(
"Python array shape is [{:,}] but expecting h={}, w={}, ch={}",
- cspan<ssize_t>(pybuf.shape), height, width, nchans);
+ cspan<py::ssize_t>(pybuf.shape), height, width, nchans);
}
} else if (pixeldims == 1) {
// Reading a 1D scanline span