Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
7107012: sun.jvm.hostspot.code.CompressedReadStream readDouble() conv…
…ersion to long mishandled

Reviewed-by: sspitsyn, dcubed
  • Loading branch information
plummercj committed Jun 29, 2020
1 parent d19f2bd commit 144267d30fc0a64688cc37d2c93af10fd0241860
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -75,7 +75,7 @@ public double readDouble() {
int rl = readInt();
int h = reverseInt(rh);
int l = reverseInt(rl);
return Double.longBitsToDouble((h << 32) | ((long)l & 0x00000000FFFFFFFFL));
return Double.longBitsToDouble(((long)h << 32) | ((long)l & 0x00000000FFFFFFFFL));
}

public long readLong() {

0 comments on commit 144267d

Please sign in to comment.