Fixed warning
This commit is contained in:
parent
f3bf2a631c
commit
2e83cb4db6
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ WRes MemBuffer_Read(CSzMemBuffer *p, void *data, size_t *size)
|
|||
if(originalSize == 0)
|
||||
return 0;
|
||||
|
||||
size_t length = (size_t)(p->pos + *size > p->size ? p->size - p->pos - 1 : *size);
|
||||
size_t length = (size_t)(p->pos + (Int64)(*size) > p->size ? p->size - p->pos - 1 : *size);
|
||||
memcpy(data, (char*)(p->buffer) + p->pos, length);
|
||||
p->pos += length;
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue