summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-10-12 21:14:47 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-10-12 21:14:47 (GMT)
commitb30f271299b10bb927253a3e42f1348e3ab27e39 (patch)
treef278a33db016354ae13a5abb4f47e1daa7ba2af9 /Python
parentd01d396e7f9db2b3c362fe48a07cd55420dce030 (diff)
downloadcpython-b30f271299b10bb927253a3e42f1348e3ab27e39.zip
cpython-b30f271299b10bb927253a3e42f1348e3ab27e39.tar.gz
cpython-b30f271299b10bb927253a3e42f1348e3ab27e39.tar.bz2
Try to fix weird assertion error on the Fedora buildbot.
Diffstat (limited to 'Python')
-rw-r--r--Python/marshal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 12565f3..9ca23db 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -83,7 +83,7 @@ typedef struct {
else w_more(c, p)
static void
-w_more(int c, WFILE *p)
+w_more(char c, WFILE *p)
{
Py_ssize_t size, newsize;
if (p->str == NULL)
@@ -100,7 +100,7 @@ w_more(int c, WFILE *p)
p->ptr = PyBytes_AS_STRING((PyBytesObject *)p->str) + size;
p->end =
PyBytes_AS_STRING((PyBytesObject *)p->str) + newsize;
- *p->ptr++ = Py_SAFE_DOWNCAST(c, int, char);
+ *p->ptr++ = c;
}
}
@@ -159,7 +159,7 @@ w_pstring(const char *s, Py_ssize_t n, WFILE *p)
static void
w_short_pstring(const char *s, Py_ssize_t n, WFILE *p)
{
- w_byte(n, p);
+ w_byte(Py_SAFE_DOWNCAST(n, Py_ssize_t, unsigned char), p);
w_string(s, n, p);
}