Ticket #4994: compile-fix-for-Python32.patch

File compile-fix-for-Python32.patch, 618 bytes (added by Matthew Bradbury <matt-bradbury@…>, 12 years ago)

Pass the correct type

  • libs/python/src/converter/builtin_converters.cpp

     
    431431          if (!result.empty())
    432432          {
    433433              int err = PyUnicode_AsWideChar(
    434                   (PyUnicodeObject *)intermediate
     434#if PY_VERSION_HEX >= 0x03020000
     435                  intermediate
     436#else
     437                                  (PyUnicodeObject *)intermediate
     438#endif
    435439                , &result[0]
    436440                , result.size());
    437441