aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2009-08-04 16:28:18 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2009-08-04 16:28:18 +0000
commit60a68bb04c7d15d8ca98fcb05e0d18f11370fe08 (patch)
tree1daef6919e4f99813c7e71dbc72b82e1adc0a10a
parent6d5251821d4c555e42142f7d6a4741fcdb7db63d (diff)
downloadperl-URPM-60a68bb04c7d15d8ca98fcb05e0d18f11370fe08.tar
perl-URPM-60a68bb04c7d15d8ca98fcb05e0d18f11370fe08.tar.gz
perl-URPM-60a68bb04c7d15d8ca98fcb05e0d18f11370fe08.tar.bz2
perl-URPM-60a68bb04c7d15d8ca98fcb05e0d18f11370fe08.tar.xz
perl-URPM-60a68bb04c7d15d8ca98fcb05e0d18f11370fe08.zip
cast (es-s) to U32 (as the hv_fetch prototype expects) rather than casting strlen(s) to signed
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 22e4d0b..87ba3d6 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -907,7 +907,7 @@ update_provides(URPM__Package pkg, HV *provides) {
}
if (s[0] == '/') {
es = strchr(s, '['); if (!es) es = strchr(s, ' ');
- (void)hv_fetch(provides, s, es != NULL ? es-s : (signed)strlen(s), 1);
+ (void)hv_fetch(provides, s, es != NULL ? (U32)(es-s) : strlen(s), 1);
}
}