]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
-- changed w_more to take an integer instead of a char
authorFredrik Lundh <fredrik@pythonware.com>
Sun, 23 Jul 2000 18:24:06 +0000 (18:24 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Sun, 23 Jul 2000 18:24:06 +0000 (18:24 +0000)
   (this is what the callers expect).

Python/marshal.c

index 064604f280e4b003003f714430a417067885c1b3..74c547417a2837325c9bf5b1631ac2d4affe11b3 100644 (file)
@@ -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;
        }
 }