Skip to content

Commit 26d795d

Browse files
committed
8324184: Windows VS2010 build failed with "error C2275: 'int64_t'"
Reviewed-by: serb Backport-of: 4f80edfae10e83f2709f297a553d2128712e4b51
1 parent 82a1501 commit 26d795d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/java.base/share/native/libverify/check_code.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,12 +1693,13 @@ static int instruction_length(unsigned char *iptr, unsigned char *end)
16931693
switch (instruction) {
16941694
case JVM_OPC_tableswitch: {
16951695
int *lpc = (int *)UCALIGN(iptr + 1);
1696+
int64_t low, high, index;
16961697
if (lpc + 2 >= (int *)end) {
16971698
return -1; /* do not read pass the end */
16981699
}
1699-
int64_t low = _ck_ntohl(lpc[1]);
1700-
int64_t high = _ck_ntohl(lpc[2]);
1701-
int64_t index = high - low;
1700+
low = _ck_ntohl(lpc[1]);
1701+
high = _ck_ntohl(lpc[2]);
1702+
index = high - low;
17021703
// The value of low must be less than or equal to high - i.e. index >= 0
17031704
if ((index < 0) || (index > 65535)) {
17041705
return -1; /* illegal */

0 commit comments

Comments
 (0)