mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
-- changed w_more to take an integer instead of a char
(this is what the callers expect).
This commit is contained in:
parent
1be46844d9
commit
115343849c
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ typedef struct {
|
||||||
else w_more(c, p)
|
else w_more(c, p)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
w_more(char c, WFILE *p)
|
w_more(int c, WFILE *p)
|
||||||
{
|
{
|
||||||
int size, newsize;
|
int size, newsize;
|
||||||
if (p->str == NULL)
|
if (p->str == NULL)
|
||||||
|
@ -69,7 +69,7 @@ w_more(char c, WFILE *p)
|
||||||
p->ptr = PyString_AS_STRING((PyStringObject *)p->str) + size;
|
p->ptr = PyString_AS_STRING((PyStringObject *)p->str) + size;
|
||||||
p->end =
|
p->end =
|
||||||
PyString_AS_STRING((PyStringObject *)p->str) + newsize;
|
PyString_AS_STRING((PyStringObject *)p->str) + newsize;
|
||||||
*p->ptr++ = c;
|
*p->ptr++ = (char) c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue