diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-07 21:06:06 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-07 21:15:47 -0600 |
commit | 62f5da377920c4e7823c4f8b8fb3673c9c2739e9 (patch) | |
tree | 3496e43e7161e765680daac4f0f56efe1dae754b /lib/libalpm/dload.c | |
parent | f966f3a8344cd96bd675c79a5c470c66920b890c (diff) | |
download | pacman-62f5da377920c4e7823c4f8b8fb3673c9c2739e9.tar.xz |
Fix some more simple conversion "errors"
None of these warn at the normal "-Wall -Werror" level, but casts do occur
that we are fine with. Make them explicit to silence some warnings when
using "-Wconversion".
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/dload.c')
-rw-r--r-- | lib/libalpm/dload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index e4b946d3..cb6d000c 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -247,7 +247,7 @@ static int download_internal(const char *url, const char *localpath, while((nread = fetchIO_read(dlf, buffer, PM_DLBUF_LEN)) > 0) { check_stop(); size_t nwritten = 0; - nwritten = fwrite(buffer, 1, nread, localf); + nwritten = fwrite(buffer, 1, (size_t)nread, localf); if((nwritten != (size_t)nread) || ferror(localf)) { pm_errno = PM_ERR_RETRIEVE; _alpm_log(PM_LOG_ERROR, _("error writing to file '%s': %s\n"), |