Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r2723:4479cc40cfbb
Date: 2016-07-11 15:19 +0200
http://bitbucket.org/cffi/cffi/changeset/4479cc40cfbb/

Log:    Use Py_ssize_t, not ssize_t directly

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -5472,7 +5472,7 @@
         *offset = cf->cf_offset;
     }
     else {
-        ssize_t index = PyInt_AsSsize_t(fieldname);
+        Py_ssize_t index = PyInt_AsSsize_t(fieldname);
         if (index < 0 && PyErr_Occurred()) {
             PyErr_SetString(PyExc_TypeError,
                             "field name or array index expected");
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to