projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80668d4
)
void* arithmetics is not defined
author
Dirk Mueller
<dmueller@suse.de>
Thu, 28 May 2009 19:45:58 +0000
(21:45 +0200)
committer
Dirk Mueller
<dmueller@oldboy.suse.de>
Thu, 28 May 2009 19:45:58 +0000
(21:45 +0200)
src/repo.c
patch
|
blob
|
history
diff --git
a/src/repo.c
b/src/repo.c
index
fce998f
..
4fc38b7
100644
(file)
--- 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;
}