diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2017-03-31 15:04:15 +0100 |
---|---|---|
committer | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2017-06-02 14:08:13 +0100 |
commit | b063b0a874bbc4724894885b0a633865675db9ff (patch) | |
tree | 3e3eb7936ada26a2bf9ee5b707ca0f17cde79982 /doop.c | |
parent | 3deca554c91ecb8309424e4f088fdde80e21248b (diff) | |
download | perl-b063b0a874bbc4724894885b0a633865675db9ff.tar.gz |
Define and use symbolic constants for LvFLAGS
Diffstat (limited to 'doop.c')
-rw-r--r-- | doop.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -927,8 +927,8 @@ Perl_do_vecset(pTHX_ SV *sv) /* some out-of-range errors have been deferred if/until the LV is * actually written to: f(vec($s,-1,8)) is not always fatal */ if (errflags) { - assert(!(errflags & ~(1|4))); - if (errflags & 1) + assert(!(errflags & ~(LVf_NEG_OFF|LVf_OUT_OF_RANGE))); + if (errflags & LVf_NEG_OFF) Perl_croak_nocontext("Negative offset to vec in lvalue context"); Perl_croak_nocontext("Out of memory!"); } |