Skip to content

Commit

Permalink
fix linux 32 bit builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzel Jakob committed Oct 21, 2015
1 parent ad7bc01 commit 3419ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/pytypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class int_ : public object {
PYBIND11_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)
#if !(defined(WIN32) || defined(__i386__)) || defined(_WIN64)
int_(ssize_t value) : object(PyLong_FromSsize_t(value), false) { }
#endif
operator int() const { return (int) PyLong_AsLong(m_ptr); }
Expand Down

0 comments on commit 3419ee9

Please sign in to comment.