mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fixed bugs in IntegerMarshaller, LongMarshaller and DoubleMarshaller
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ public enum DoubleMarshaller implements BytesInterop<Double>, BytesReader<Double
|
||||
|
||||
@Override
|
||||
public boolean startsWith(Bytes bytes, Double e) {
|
||||
return doubleToLongBits(e) == bytes.readLong(0);
|
||||
return doubleToLongBits(e) == bytes.readLong(bytes.position());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ public enum IntegerMarshaller
|
||||
|
||||
@Override
|
||||
public boolean startsWith(Bytes bytes, Integer e) {
|
||||
return e == bytes.readInt(0);
|
||||
return e == bytes.readInt(bytes.position());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -45,7 +45,7 @@ public enum LongMarshaller
|
||||
|
||||
@Override
|
||||
public boolean startsWith(Bytes bytes, Long e) {
|
||||
return e == bytes.readLong(0);
|
||||
return e == bytes.readLong(bytes.position());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user