summaryrefslogtreecommitdiff
path: root/mg.h
diff options
context:
space:
mode:
authorCharles Bailey <bailey@newman.upenn.edu>2000-02-09 09:29:06 +0000
committerbailey <bailey@newman.upenn.edu>2000-02-09 09:29:06 +0000
commit67aad85c4f9b5ae1b18aaea6fe21566e6c85758b (patch)
tree390fd784f9a50e98480a55eebff4c6572fca6702 /mg.h
parente3452c925e206be49789aa5b7fa43c27923b0f33 (diff)
downloadperl-67aad85c4f9b5ae1b18aaea6fe21566e6c85758b.tar.gz
Minor fixes to assuage picky compilers (unsigned comparisons and
alias rules lead to compilation warnings) p4raw-id: //depot/vmsperl@5050
Diffstat (limited to 'mg.h')
-rw-r--r--mg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.h b/mg.h
index baedde5a6e..ad50f5a0ae 100644
--- a/mg.h
+++ b/mg.h
@@ -40,7 +40,7 @@ struct magic {
#define MgTAINTEDDIR_on(mg) (mg->mg_flags |= MGf_TAINTEDDIR)
#define MgTAINTEDDIR_off(mg) (mg->mg_flags &= ~MGf_TAINTEDDIR)
-#define MgPV(mg,lp) (((lp = (mg)->mg_len) == HEf_SVKEY) ? \
+#define MgPV(mg,lp) ((((int)(lp = (mg)->mg_len)) == HEf_SVKEY) ? \
SvPV((SV*)((mg)->mg_ptr),lp) : \
(mg)->mg_ptr)