From 1214c6e2f01d05333aef8eb2eeb2dce8f9320f90 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Wed, 31 Jul 2024 03:04:31 -0700 Subject: [PATCH] Double quote `q` --- python/pybind11/cucim_py.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pybind11/cucim_py.cpp b/python/pybind11/cucim_py.cpp index f9a6f9853..9cc9a41fd 100644 --- a/python/pybind11/cucim_py.cpp +++ b/python/pybind11/cucim_py.cpp @@ -462,7 +462,7 @@ py::object py_read_region(const CuImage& cuimg, py::buffer_info buf = buffer_info(PyMemoryView_GET_BUFFER(mv.ptr()), false); if (buf) { - if (buf.format != 'q') + if (buf.format != "q") { throw std::invalid_argument("Expected int64 array-like"); }