Commit c47fc488 by Wenzel Jakob

win32 build fix

parent a7500317
...@@ -229,7 +229,9 @@ public: ...@@ -229,7 +229,9 @@ public:
PYBIND_OBJECT_DEFAULT(int_, object, PyLong_Check) PYBIND_OBJECT_DEFAULT(int_, object, PyLong_Check)
int_(int value) : object(PyLong_FromLong((long) value), false) { } int_(int value) : object(PyLong_FromLong((long) value), false) { }
int_(size_t value) : object(PyLong_FromSize_t(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) { } int_(ssize_t value) : object(PyLong_FromSsize_t(value), false) { }
#endif
operator int() const { return (int) PyLong_AsLong(m_ptr); } operator int() const { return (int) PyLong_AsLong(m_ptr); }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment