aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-10-14 21:53:22 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-14 21:58:58 +0200
commitaeb63a76b34d99a91888a224da49f08926722cdd (patch)
tree82f3261ee9322eb71067a85b6e66723b8a80e4bb /URPM.xs
parenta39d4e83a342a83bc4091a43291e5a0a9fa043c2 (diff)
downloadperl-URPM-aeb63a76b34d99a91888a224da49f08926722cdd.tar
perl-URPM-aeb63a76b34d99a91888a224da49f08926722cdd.tar.gz
perl-URPM-aeb63a76b34d99a91888a224da49f08926722cdd.tar.bz2
perl-URPM-aeb63a76b34d99a91888a224da49f08926722cdd.tar.xz
perl-URPM-aeb63a76b34d99a91888a224da49f08926722cdd.zip
fix compiling on 32bit
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 5541e1a..8c3cfec 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -757,7 +757,7 @@ pack_header(const URPM__Package pkg) {
const char *p = buff;
const char *nvr = headerGetAsString(pkg->h, RPMTAG_NVR);
const char *arch = get_arch(pkg->h);
- p += 1 + snprintf(buff, sizeof(buff), "%s.%s@%lu@%lu@%s", nvr, arch,
+ p += 1 + snprintf(buff, sizeof(buff), "%s.%s@%llu@%llu@%s", nvr, arch,
get_int(pkg->h, RPMTAG_EPOCH), get_int(pkg->h, RPMTAG_SIZE),
get_name(pkg->h, RPMTAG_GROUP));
pkg->info = memcpy(malloc(p-buff), buff, p-buff);