Negating an unsigned value generates warnings for some compilers, so
Nicholas Clark [Fri, 6 Jan 2006 18:29:57 +0000 (18:29 +0000)]
cast it first.

p4raw-id: //depot/perl@26679

lib/ExtUtils/Constant/ProxySubs.pm

index 57beb54..2df31b9 100644 (file)
@@ -453,7 +453,7 @@ $xs_subname(sv)
        SV *            sv;
         const char *   s = SvPV(sv, len);
     PPCODE:
-       if (hv_exists(${c_subname}_missing, s, SvUTF8(sv) ? -len : len)) {
+       if (hv_exists(${c_subname}_missing, s, SvUTF8(sv) ? -(I32)len : len)) {
            sv = newSVpvf("Your vendor has not defined $package_sprintf_safe macro %" SVf
                          ", used", sv);
        } else {