aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2007-12-12 03:02:35 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2007-12-12 03:02:35 +0000
commitc7ca3fb1600bbe15b507f0ecf0f7f3007da25fab (patch)
tree00d8cb8799fcf6f9e86aad4b3190dab46628978f
parent4b5c5934ceb5183ea60eda1856d5f9d2be1f376b (diff)
downloadperl-URPM-c7ca3fb1600bbe15b507f0ecf0f7f3007da25fab.tar
perl-URPM-c7ca3fb1600bbe15b507f0ecf0f7f3007da25fab.tar.gz
perl-URPM-c7ca3fb1600bbe15b507f0ecf0f7f3007da25fab.tar.bz2
perl-URPM-c7ca3fb1600bbe15b507f0ecf0f7f3007da25fab.tar.xz
perl-URPM-c7ca3fb1600bbe15b507f0ecf0f7f3007da25fab.zip
fix cast warnings on 64 bi6
-rw-r--r--URPM.xs4
1 files changed, 2 insertions, 2 deletions
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;