From ab44228a5e38330d19a9ba8973b586a65a5aa397 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Tue, 21 Aug 2018 11:20:20 -0500 Subject: [PATCH] [pybind] Fix pypy any-contiguity workaround --- src/wrap_cl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp index a929d229..ace4bd25 100644 --- a/src/wrap_cl.hpp +++ b/src/wrap_cl.hpp @@ -457,10 +457,10 @@ namespace pyopencl throw py::error_already_set(); } } -#else + else +#endif if (PyObject_GetBuffer(obj, &m_buf, flags)) throw py::error_already_set(); -#endif m_initialized = true; } -- GitLab