summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-03-31 15:04:15 +0100
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-06-02 14:08:13 +0100
commitb063b0a874bbc4724894885b0a633865675db9ff (patch)
tree3e3eb7936ada26a2bf9ee5b707ca0f17cde79982 /doop.c
parent3deca554c91ecb8309424e4f088fdde80e21248b (diff)
downloadperl-b063b0a874bbc4724894885b0a633865675db9ff.tar.gz
Define and use symbolic constants for LvFLAGS
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doop.c b/doop.c
index 0dd4bdf603..0a546cce8f 100644
--- a/doop.c
+++ b/doop.c
@@ -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!");
}