1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-27 01:25:34 +00:00

[zstd] casts to silence compiler

This commit is contained in:
Witold Filipczyk 2022-02-21 16:21:29 +01:00
parent da183d94f6
commit 7e2749c127

View File

@ -141,7 +141,7 @@ zstd_read(struct stream_encoded *stream, char *buf, int len)
mem_free(data->output.dst);
data->output.dst = NULL;
} else {
memcpy(buf, data->output.dst + data->sent_pos, length);
memcpy(buf, (void *)((char *)(data->output.dst) + data->sent_pos), length);
data->sent_pos += length;
}