From da7e57f4cc016c254899c9438de1cbc9871a93bc Mon Sep 17 00:00:00 2001 From: default Date: Sun, 8 Jan 2023 10:39:11 +0100 Subject: Backport from xs. --- xs_curl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xs_curl.h') diff --git a/xs_curl.h b/xs_curl.h index 7ecef2d..2b07cad 100644 --- a/xs_curl.h +++ b/xs_curl.h @@ -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); -- cgit v1.2.3