diff options
author | David Mitchell <davem@iabyn.com> | 2012-12-10 16:28:19 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-12-10 16:28:19 +0000 |
commit | 01f449739adb09a21772a83e939e5c96152d636c (patch) | |
tree | 55c389bb60518fdaca365fb33d055cae6c97c7f5 /op.h | |
parent | ed57bf8d26295a956cc0a2b7959fd1088d7f8b2f (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |