From: Klaus Kaempf Date: Mon, 22 Oct 2007 15:25:04 +0000 (+0000) Subject: make it compile on 64bit X-Git-Tag: BASE-SuSE-Code-12_1-Branch~1214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bcc9c39f8ee6e6b82590049fe0cb922c0603653;p=platform%2Fupstream%2Flibsolv.git make it compile on 64bit --- diff --git a/src/solver.c b/src/solver.c index 0928af6..0f592a3 100644 --- a/src/solver.c +++ b/src/solver.c @@ -850,7 +850,7 @@ addrulesforsolvable(Solver *solv, Solvable *s, Map *m) { /* nothing provides req! */ #if 1 - if (pool->verbose) printf("package %s-%s.%s [%d] is not installable (%s)\n", id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch), s - pool->solvables, dep2str(pool, req)); + if (pool->verbose) printf("package %s-%s.%s [%ld] is not installable (%s)\n", id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch), (long int)(s - pool->solvables), dep2str(pool, req)); #endif addrule(solv, -n, 0); /* mark requestor as uninstallable */ if (solv->rc_output) @@ -2963,7 +2963,7 @@ solve(Solver *solv, Queue *job) } else { - printf("- allow deinstallation of %s-%s.%s [%d]\n", id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch), s - pool->solvables); + printf("- allow deinstallation of %s-%s.%s [%ld]\n", id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch), (long int)(s - pool->solvables)); } } else