chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*.c: Declare `PY_SSIZE_T_CLEAN'.
[catacomb-python]
/
bytestring.c
diff --git
a/bytestring.c
b/bytestring.c
index b3b32de52bd6159416412277b838b758b520f8f0..b78ec1451510ffb35febc757771db4d309cde63e 100644
(file)
--- a/
bytestring.c
+++ b/
bytestring.c
@@
-54,7
+54,7
@@
static PyObject *bytestring_pynew(PyTypeObject *ty,
PyObject *arg, PyObject *kw)
{
const char *p;
-
in
t n;
+
Py_ssize_
t n;
static char *kwlist[] = { "data", 0 };
if (!PyArg_ParseTupleAndKeywords(arg, kw, "s#:new", kwlist, &p, &n))
return (0);