summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2014-02-23 11:41:40 +1000
committerAllan McRae <allan@archlinux.org>2014-03-03 11:25:55 +1000
commitb2488eb356281e5da56d12286f07798f8ca8d2cb (patch)
tree3dcb6f9e06ca1cf8bf5bd663f1b5a0c5ef65105d /lib
parente5c714f5010e803465dbe57adc31687dffba10b2 (diff)
downloadpacman-b2488eb356281e5da56d12286f07798f8ca8d2cb.tar.xz
Fix warnings with strict-overflow in gcc-4.9
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/sync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 96db50a3..718f9af2 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -685,7 +685,8 @@ static int endswith(const char *filename, const char *extension)
static int apply_deltas(alpm_handle_t *handle)
{
alpm_list_t *i;
- int deltas_found = 0, ret = 0;
+ size_t deltas_found = 0;
+ int ret = 0;
const char *cachedir = _alpm_filecache_setup(handle);
alpm_trans_t *trans = handle->trans;
alpm_event_delta_patch_t event;