summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2012-12-10 16:28:19 +0000
committerDavid Mitchell <davem@iabyn.com>2012-12-10 16:28:19 +0000
commit01f449739adb09a21772a83e939e5c96152d636c (patch)
tree55c389bb60518fdaca365fb33d055cae6c97c7f5 /op.h
parented57bf8d26295a956cc0a2b7959fd1088d7f8b2f (diff)
downloadperl-01f449739adb09a21772a83e939e5c96152d636c.tar.gz
fix warning in PmopSTASH_set()
In the threaded version of PmopSTASH_set(), the assigned value is a PADOFFSET, not a pointer; so use 0 rather than NULL for the default value. This keeps clang happy.
Diffstat (limited to 'op.h')
-rw-r--r--op.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.h b/op.h
index c1800df828..286b880866 100644
--- a/op.h
+++ b/op.h
@@ -457,7 +457,7 @@ struct pmop {
# define PmopSTASH_set(o,hv) \
(assert_((o)->op_pmflags & PMf_ONCE) \
(o)->op_pmstashstartu.op_pmstashoff = \
- (hv) ? alloccopstash(hv) : NULL)
+ (hv) ? alloccopstash(hv) : 0)
#else
# define PmopSTASH(o) \
(((o)->op_pmflags & PMf_ONCE) ? (o)->op_pmstashstartu.op_pmstash : NULL)