Skip to content

Commit 9738738

Browse files
Zeframjkeenan
authored andcommitted
Eliminate build-time warning
Compiling with gcc7, for example, generated a '-Woverflow' warning with text 'overflow in implicit constant conversion'. For: #17664
1 parent d4d3249 commit 9738738

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/Opcode/Opcode.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use strict;
66

77
our($VERSION, @ISA, @EXPORT_OK);
88

9-
$VERSION = "1.46";
9+
$VERSION = "1.47";
1010

1111
use Carp;
1212
use Exporter ();

ext/Opcode/Opcode.xs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ CODE:
360360
bitmap[len] = ~bitmap[len];
361361
/* take care of extra bits beyond PL_maxo in last byte */
362362
if (PL_maxo & 07)
363-
bitmap[opset_len-1] &= ~(0xFF << (PL_maxo & 0x07));
363+
bitmap[opset_len-1] &= ~(char)(0xFF << (PL_maxo & 0x07));
364364
}
365365
ST(0) = opset;
366366

0 commit comments

Comments
 (0)