summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/Opcode/ops.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/Opcode/ops.pm b/ext/Opcode/ops.pm
index 5a7b30a74a..b9ea36cef3 100644
--- a/ext/Opcode/ops.pm
+++ b/ext/Opcode/ops.pm
@@ -7,12 +7,12 @@ sub import {
# Not that unimport is the prefered form since import's don't
# accumulate well owing to the 'only ever add opmask' rule.
# E.g., perl -Mops=:set1 -Mops=:setb is unlikely to do as expected.
- opmask_add(invert_opset opset(@_));
+ opmask_add(invert_opset opset(@_)) if @_;
}
sub unimport {
shift;
- opmask_add(opset(@_));
+ opmask_add(opset(@_)) if @_;
}
1;