From 60a68bb04c7d15d8ca98fcb05e0d18f11370fe08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Tue, 4 Aug 2009 16:28:18 +0000 Subject: cast (es-s) to U32 (as the hv_fetch prototype expects) rather than casting strlen(s) to signed --- URPM.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.1