summaryrefslogtreecommitdiff
path: root/ext/Opcode/Opcode.xs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Opcode/Opcode.xs')
-rw-r--r--ext/Opcode/Opcode.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/Opcode/Opcode.xs b/ext/Opcode/Opcode.xs
index 5a95238979..ef2be80594 100644
--- a/ext/Opcode/Opcode.xs
+++ b/ext/Opcode/Opcode.xs
@@ -46,7 +46,7 @@ op_names_init()
while(i-- > 0)
bitmap[i] = 0xFF;
/* Take care to set the right number of bits in the last byte */
- bitmap[len-1] = (maxo & 0x07) ? ~(~0 << (maxo & 0x07)) : 0xFF;
+ bitmap[len-1] = ~(0xFF << (maxo & 0x07));
put_op_bitspec(":all",0, opset_all); /* don't mortalise */
}
@@ -290,7 +290,7 @@ invert_opset(opset)
while(len-- > 0)
bitmap[len] = ~bitmap[len];
/* take care of extra bits beyond maxo in last byte */
- bitmap[opset_len-1] &= ~(0xFF << (maxo & 0x0F));
+ bitmap[opset_len-1] &= ~(0xFF << (maxo & 0x07));
}
ST(0) = opset;