Author: Matti Picus <[email protected]>
Branch: 
Changeset: r95518:b11298a062cb
Date: 2018-12-21 12:55 +0200
http://bitbucket.org/pypy/pypy/changeset/b11298a062cb/

Log:    Py_ssize_t is fixed as a long, c++ makes the format warning an error

diff --git a/pypy/module/cpyext/src/stringobject.c 
b/pypy/module/cpyext/src/stringobject.c
--- a/pypy/module/cpyext/src/stringobject.c
+++ b/pypy/module/cpyext/src/stringobject.c
@@ -164,7 +164,7 @@
                         va_arg(vargs, PY_LONG_LONG));
 #endif
                 else if (size_tflag)
-                    sprintf(s, "%" PY_FORMAT_SIZE_T "d",
+                    sprintf(s, "%ld",
                         va_arg(vargs, Py_ssize_t));
                 else
                     sprintf(s, "%d", va_arg(vargs, int));
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to