Fixed bugs in IntegerMarshaller, LongMarshaller and DoubleMarshaller

This commit is contained in:
leventov
2014-12-13 15:24:59 +07:00
parent f7a6b85543
commit 94249b1269
3 changed files with 3 additions and 3 deletions
@@ -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
@@ -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