diff options
author | Tony Cook <tony@develop-help.com> | 2010-10-25 11:04:23 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2010-10-25 11:04:23 +1100 |
commit | 19b96a2b521beb3b36fd375c46258d57d7d8a31e (patch) | |
tree | 8d4dacb2bf806db9bdb0c64a230adff71418698e /cpan/ExtUtils-Constant | |
parent | 2acc3314e31a9342e325f35c5b592967c9850c9b (diff) | |
download | perl-19b96a2b521beb3b36fd375c46258d57d7d8a31e.tar.gz |
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().
Diffstat (limited to 'cpan/ExtUtils-Constant')
-rw-r--r-- | cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm b/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm index c252fc3933..0c040023f4 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 |