From c7ca3fb1600bbe15b507f0ecf0f7f3007da25fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Wed, 12 Dec 2007 03:02:35 +0000 Subject: fix cast warnings on 64 bi6 --- URPM.xs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'URPM.xs') diff --git a/URPM.xs b/URPM.xs index 70c6225..d294bc2 100644 --- a/URPM.xs +++ b/URPM.xs @@ -1391,7 +1391,7 @@ static void *rpmRunTransactions_callback(const void *h, PUSHMARK(SP); XPUSHs(td->data); XPUSHs(sv_2mortal(newSVpv(callback_type, 0))); - XPUSHs(pkgKey != NULL ? sv_2mortal(newSViv((int)pkgKey - 1)) : &PL_sv_undef); + XPUSHs(pkgKey != NULL ? sv_2mortal(newSViv((long)pkgKey - 1)) : &PL_sv_undef); if (callback_subtype != NULL) { XPUSHs(sv_2mortal(newSVpv(callback_subtype, 0))); XPUSHs(sv_2mortal(newSViv(amount))); @@ -2975,7 +2975,7 @@ Trans_add(trans, pkg, ...) } } } - RETVAL = rpmtsAddInstallElement(trans->ts, pkg->h, (fnpyKey)(1+(pkg->flag & FLAG_ID)), update, relocations) == 0; + RETVAL = rpmtsAddInstallElement(trans->ts, pkg->h, (fnpyKey)(1+(long)(pkg->flag & FLAG_ID)), update, relocations) == 0; /* free allocated memory, check rpm is copying it just above, at least in 4.0.4 */ free(relocations); } else RETVAL = 0; -- cgit v1.2.1