diff options
author | default <nobody@localhost> | 2023-01-08 10:39:11 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-01-08 10:39:11 +0100 |
commit | da7e57f4cc016c254899c9438de1cbc9871a93bc (patch) | |
tree | cec0c0bd2ac110bc0ad7d420c656e93d2937e0e4 /xs_curl.h | |
parent | 631f16aea860377ad8bdfbce40a0df5b2bfb9494 (diff) |
Backport from xs.
Diffstat (limited to 'xs_curl.h')
-rw-r--r-- | xs_curl.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -71,7 +71,7 @@ static int _post_callback(char *buffer, size_t size, int sz = pd->size - pd->offset; /* if it's still bigger than the provided space, trim */ - if (sz > size * nitems) + if (sz > (int) (size * nitems)) sz = size * nitems; memcpy(buffer, pd->data + pd->offset, sz); |