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:
Simone Bordet 2018-03-28 11:36:50 +02:00
parent 8cf15659be
commit a28ec963d1
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}