From 19b96a2b521beb3b36fd375c46258d57d7d8a31e Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Mon, 25 Oct 2010 11:04:23 +1100 Subject: [PATCH] use compatible types in a conditional expression With some compilers NULL is ((void *)0) which isn't type compatible with the integer returned by hv_exists_ent(). --- cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm b/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm index c252fc3..0c04002 100644 --- a/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm +++ b/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm @@ -663,7 +663,7 @@ $xs_subname(sv) HV *${c_subname}_missing = (C_ARRAY_LENGTH(values_for_notfound) > 1) ? get_missing_hash(aTHX) : NULL; if ((C_ARRAY_LENGTH(values_for_notfound) > 1) - ? hv_exists_ent(${c_subname}_missing, sv, 0) : NULL) { + ? hv_exists_ent(${c_subname}_missing, sv, 0) : 0) { sv = newSVpvf("Your vendor has not defined $package_sprintf_safe macro %" SVf ", used", sv); } else -- 2.7.4