ref: refs/heads/master
commit 5d9c3fdb605ac410ce32f05e8c90ab50b27b9f4e
Author: Dirk Mueller
Date: Thu May 28 21:45:58 2009 +0200
void* arithmetics is not defined
---
src/repo.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/repo.c b/src/repo.c
index fce998f..4fc38b7 100644
--- a/src/repo.c
+++ b/src/repo.c
@@ -334,7 +334,7 @@ repo_sidedata_extend(Repo *repo, void *b, size_t size, Id p, int count)
{
int d = repo->start - p;
b = sat_extend(b, n, d, size, REPO_SIDEDATA_BLOCK);
- memmove(b + d * size, b, n * size);
+ memmove((char*)b + d * size, b, n * size);
memset(b, 0, d * size);
n += d;
}
@@ -342,7 +342,7 @@ repo_sidedata_extend(Repo *repo, void *b, size_t size, Id p, int count)
{
int d = p + count - repo->end;
b = sat_extend(b, n, d, size, REPO_SIDEDATA_BLOCK);
- memset(b + n * size, 0, d * size);
+ memset((char*)b + n * size, 0, d * size);
}
return b;
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org