mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 22:48:00 +08:00
14 lines
678 B
Diff
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
|