summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rw-r--r--Include/pyerrors.h4
-rw-r--r--Include/structmember.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index 1eacbaf..b494bb6 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -30,8 +30,8 @@ typedef struct {
PyObject *args;
PyObject *encoding;
PyObject *object;
- PyObject *start;
- PyObject *end;
+ Py_ssize_t start;
+ Py_ssize_t end;
PyObject *reason;
} PyUnicodeErrorObject;
diff --git a/Include/structmember.h b/Include/structmember.h
index a35b7a7..a46788d 100644
--- a/Include/structmember.h
+++ b/Include/structmember.h
@@ -68,9 +68,10 @@ typedef struct PyMemberDef {
#ifdef HAVE_LONG_LONG
#define T_LONGLONG 17
#define T_ULONGLONG 18
+#define T_PYSSIZET 19 /* Py_ssize_t */
#endif /* HAVE_LONG_LONG */
-#define T_NONE 19 /* Value is always None */
+#define T_NONE 20 /* Value is always None */
/* Flags */
#define READONLY 1