Mailinglist Archive: zypp-commit (171 mails)

< Previous Next >
[zypp-commit] <sat-solver> master : void* arithmetics is not defined
  • From: Dirk Mueller <dmueller@xxxxxxx>
  • Date: Thu, 28 May 2009 21:45:58 +0200
  • Message-id: <E1MEqdn-0004Ax-8B@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 5d9c3fdb605ac410ce32f05e8c90ab50b27b9f4e
Author: Dirk Mueller <dmueller@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages