Issue #2388 - AtomicBiInteger.compareAndSet(long,int,int) not using encoded parameter.
Using capital 'L' for long literals to avoid confusion with '1'. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
8cf15659be
commit
a28ec963d1
|
@ -265,7 +265,7 @@ public class AtomicBiInteger extends AtomicLong
|
|||
public static long encodeHi(long encoded, int hi)
|
||||
{
|
||||
long h = ((long)hi)&0xFFFF_FFFFL;
|
||||
long l = encoded&0xFFFF_FFFFl;
|
||||
long l = encoded&0xFFFF_FFFFL;
|
||||
return (h<<32)+l;
|
||||
}
|
||||
|
||||
|
@ -278,7 +278,7 @@ public class AtomicBiInteger extends AtomicLong
|
|||
*/
|
||||
public static long encodeLo(long encoded, int lo)
|
||||
{
|
||||
long h = (encoded>>32)&0xFFFF_FFFFl;
|
||||
long h = (encoded>>32)&0xFFFF_FFFFL;
|
||||
long l = ((long)lo)&0xFFFF_FFFFL;
|
||||
return (h<<32)+l;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue