From 60cb629833b3ba604d6b903b33b761baa5261336 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Thu, 21 Apr 2022 11:19:40 -0400 Subject: [PATCH] Fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Vladimír Vondruš --- src/python/magnum/math.vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/magnum/math.vector.h b/src/python/magnum/math.vector.h index ece63c4..a38803e 100644 --- a/src/python/magnum/math.vector.h +++ b/src/python/magnum/math.vector.h @@ -133,7 +133,7 @@ template void everyVectorBuffer(py::class_& /* Buffer protocol. If not present, implicit conversion from numpy arrays of non-default types somehow doesn't work. There's also the other part in vectorBuffer(). */ - .def(py::init([](const py::buffer &other) { + .def(py::init([](const py::buffer& other) { /* GCC 4.8 otherwise loudly complains about missing initializers */ Py_buffer buffer{nullptr, nullptr, 0, 0, 0, 0, nullptr, nullptr, nullptr, nullptr, nullptr}; if(PyObject_GetBuffer(other.ptr(), &buffer, PyBUF_FORMAT|PyBUF_STRIDES) != 0)