This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author meador.inge
Recipients dw, meador.inge, pitrou, zach.ware
Date 2014-08-03.00:42:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407026532.93.0.893885715978.issue22125@psf.upfronthosting.co.za>
In-reply-to
Content
Hmmmm, maybe I am missing some context, but why not avoid the casting and do?

diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c
--- a/Modules/_io/bytesio.c
+++ b/Modules/_io/bytesio.c
@@ -47,7 +47,7 @@ typedef struct {
  * exception and returns -1 on failure. Existing state is preserved on failure.
  */
 static int
-unshare(bytesio *self, size_t preferred_size, int truncate)
+unshare(bytesio *self, Py_ssize_t preferred_size, int truncate)
 {
     if (self->initvalue) {
         Py_ssize_t copy_size;
History
Date User Action Args
2014-08-03 00:42:13meador.ingesetrecipients: + meador.inge, pitrou, zach.ware, dw
2014-08-03 00:42:12meador.ingesetmessageid: <1407026532.93.0.893885715978.issue22125@psf.upfronthosting.co.za>
2014-08-03 00:42:12meador.ingelinkissue22125 messages
2014-08-03 00:42:12meador.ingecreate