summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>2010-12-15 22:41:47 -0800
committerJan Dubois <jand@activestate.com>2010-12-16 11:24:24 -0800
commit2dcac756b8b2c3b3d7d34174ba27b78fb1c7ba4a (patch)
tree60651f69172e41b6e83652b51230581f422c51c8 /gv.c
parentec0363d9bb05a67dad10a50c9b76b5aba365199a (diff)
downloadperl-2dcac756b8b2c3b3d7d34174ba27b78fb1c7ba4a.tar.gz
Silence some data truncation compiler warnings
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index 5d7837c01c..4e79171989 100644
--- a/gv.c
+++ b/gv.c
@@ -1914,7 +1914,7 @@ Perl_gv_handler(pTHX_ HV *stash, I32 id)
do_update:
/* If we're looking up a destructor to invoke, we must avoid
* that Gv_AMupdate croaks, because we might be dying already */
- if (Gv_AMupdate(stash, id == DESTROY_amg) == -1) {
+ if (Gv_AMupdate(stash, cBOOL(id == DESTROY_amg)) == -1) {
/* and if it didn't found a destructor, we fall back
* to a simpler method that will only look for the
* destructor instead of the whole magic */