diff options
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, | |||
| 71 | int sz = pd->size - pd->offset; | 71 | int sz = pd->size - pd->offset; |
| 72 | 72 | ||
| 73 | /* if it's still bigger than the provided space, trim */ | 73 | /* if it's still bigger than the provided space, trim */ |
| 74 | if (sz > size * nitems) | 74 | if (sz > (int) (size * nitems)) |
| 75 | sz = size * nitems; | 75 | sz = size * nitems; |
| 76 | 76 | ||
| 77 | memcpy(buffer, pd->data + pd->offset, sz); | 77 | memcpy(buffer, pd->data + pd->offset, sz); |