From c47fc488d3ba90a8f113acc53dac95a15b1b7866 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 30 Aug 2015 01:01:47 +0200 Subject: [PATCH] win32 build fix --- include/pybind/pytypes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/pybind/pytypes.h b/include/pybind/pytypes.h index 2a9052fd8..5aff796c3 100644 --- a/include/pybind/pytypes.h +++ b/include/pybind/pytypes.h @@ -229,7 +229,9 @@ public: PYBIND_OBJECT_DEFAULT(int_, object, PyLong_Check) int_(int value) : object(PyLong_FromLong((long) value), false) { } int_(size_t value) : object(PyLong_FromSize_t(value), false) { } +#if !defined(WIN32) || defined(_WIN64) int_(ssize_t value) : object(PyLong_FromSsize_t(value), false) { } +#endif operator int() const { return (int) PyLong_AsLong(m_ptr); } };