mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-24 15:12:00 +00:00
chunker: n needs to be a signed size_t
... as it is also used for the read() return value, which can be negative in case of errors.
This commit is contained in:
parent
9d21e4ad69
commit
3be55bedd3
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ chunker_free(Chunker *c)
|
||||||
static int
|
static int
|
||||||
chunker_fill(Chunker *c)
|
chunker_fill(Chunker *c)
|
||||||
{
|
{
|
||||||
size_t n;
|
ssize_t n;
|
||||||
PyObject *data;
|
PyObject *data;
|
||||||
memmove(c->data, c->data + c->last, c->position + c->remaining - c->last);
|
memmove(c->data, c->data + c->last, c->position + c->remaining - c->last);
|
||||||
c->position -= c->last;
|
c->position -= c->last;
|
||||||
|
|
Loading…
Reference in a new issue