Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 149623
Collapse All | Expand All

(-)swig-1.3.29/Lib/python/pyhead.swg (+5 lines)
Lines 80-82 Link Here
80
}
80
}
81
#endif
81
#endif
82
82
83
/* Py_ssize_t for old Pythons */
84
#if PY_VERSION_HEX < 0x02050000
85
typedef int Py_ssize_t;
86
#endif
87
(-)swig-1.3.29/Lib/python/pystrings.swg (-1 / +1 lines)
Lines 6-12 Link Here
6
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
6
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
7
{
7
{
8
  if (PyString_Check(obj)) {
8
  if (PyString_Check(obj)) {
9
    char *cstr; int len;
9
    char *cstr; Py_ssize_t len;
10
    PyString_AsStringAndSize(obj, &cstr, &len);
10
    PyString_AsStringAndSize(obj, &cstr, &len);
11
    if (cptr)  {
11
    if (cptr)  {
12
      if (alloc) {
12
      if (alloc) {

Return to bug 149623