summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-07-23 18:24:06 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-07-23 18:24:06 (GMT)
commit115343849c69d56cd147b8cdc9fe14e068504c60 (patch)
tree7c9508a065b5514761e51fa5e698b775d2fc65b5 /Python/marshal.c
parent1be46844d9c858a21021e2c3ad0ef9bbee64d9e0 (diff)
downloadcpython-115343849c69d56cd147b8cdc9fe14e068504c60.zip
cpython-115343849c69d56cd147b8cdc9fe14e068504c60.tar.gz
cpython-115343849c69d56cd147b8cdc9fe14e068504c60.tar.bz2
-- changed w_more to take an integer instead of a char
(this is what the callers expect).
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 064604f..74c5474 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -55,7 +55,7 @@ typedef struct {
else w_more(c, p)
static void
-w_more(char c, WFILE *p)
+w_more(int c, WFILE *p)
{
int size, newsize;
if (p->str == NULL)
@@ -69,7 +69,7 @@ w_more(char c, WFILE *p)
p->ptr = PyString_AS_STRING((PyStringObject *)p->str) + size;
p->end =
PyString_AS_STRING((PyStringObject *)p->str) + newsize;
- *p->ptr++ = c;
+ *p->ptr++ = (char) c;
}
}