Skip to content

Commit

Permalink
Merge pull request #1411 from ericmehl/Py_ssize_t
Browse files Browse the repository at this point in the history
IECoreBinding : Use `Py_ssize_t`
  • Loading branch information
johnhaddon authored Apr 24, 2024
2 parents 50233fe + 77b6aa7 commit f8d3b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/IECorePython/IECoreBinding.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ IECOREPYTHON_API std::string repr( T &x );

/// For backwards compatibility with older versions of boost,
/// which don't provide boost::python::len
IECOREPYTHON_API inline ssize_t len( const boost::python::object &obj )
IECOREPYTHON_API inline Py_ssize_t len( const boost::python::object &obj )
{
ssize_t result = PyObject_Length( obj.ptr() );
Py_ssize_t result = PyObject_Length( obj.ptr() );

if( PyErr_Occurred() )
{
Expand Down

0 comments on commit f8d3b66

Please sign in to comment.