mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 08:32:02 +00:00
fix linux 32 bit builds
This commit is contained in:
parent
ad7bc01d51
commit
3419ee909f
@ -250,7 +250,7 @@ public:
|
|||||||
PYBIND11_OBJECT_DEFAULT(int_, object, PyLong_Check)
|
PYBIND11_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)
|
#if !(defined(WIN32) || defined(__i386__)) || defined(_WIN64)
|
||||||
int_(ssize_t value) : object(PyLong_FromSsize_t(value), false) { }
|
int_(ssize_t value) : object(PyLong_FromSsize_t(value), false) { }
|
||||||
#endif
|
#endif
|
||||||
operator int() const { return (int) PyLong_AsLong(m_ptr); }
|
operator int() const { return (int) PyLong_AsLong(m_ptr); }
|
||||||
|
Loading…
Reference in New Issue
Block a user