From 6438f77d7888033b05caf30ecbcd2a0efe46c40f Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Wed, 10 Sep 2008 13:36:43 +0000 Subject: [PATCH] - work around c++ compiler (see also http://yosefk.com/c++fqa/) --- src/repo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repo.h b/src/repo.h index 931ad8f..ee19efb 100644 --- a/src/repo.h +++ b/src/repo.h @@ -83,7 +83,7 @@ static inline Id repo_add_solvable(Repo *repo) else { if (repo->rpmdbid) - repo->rpmdbid = repo_sidedata_extend(repo, repo->rpmdbid, sizeof(Id), p, 1); + repo->rpmdbid = (Id *)repo_sidedata_extend(repo, repo->rpmdbid, sizeof(Id), p, 1); if (p < repo->start) repo->start = p; if (p + 1 > repo->end) @@ -110,7 +110,7 @@ static inline Id repo_add_solvable_block(Repo *repo, int count) else { if (repo->rpmdbid) - repo->rpmdbid = repo_sidedata_extend(repo, repo->rpmdbid, sizeof(Id), p, count); + repo->rpmdbid = (Id *)repo_sidedata_extend(repo, repo->rpmdbid, sizeof(Id), p, count); if (p < repo->start) repo->start = p; if (p + count > repo->end) -- 2.7.4