File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/maxmind/db Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ public byte get(long index) {
147147 public double getDouble () {
148148 int bufIndex = (int ) (position / CHUNK_SIZE );
149149 int off = (int ) (position % CHUNK_SIZE );
150- ByteBuffer buf = buffers .get (bufIndex ). duplicate () ;
150+ ByteBuffer buf = buffers .get (bufIndex );
151151 buf .position (off );
152152 double value ;
153153 if (buf .remaining () >= 8 ) {
@@ -166,7 +166,7 @@ public double getDouble() {
166166 public float getFloat () {
167167 int bufIndex = (int ) (position / CHUNK_SIZE );
168168 int off = (int ) (position % CHUNK_SIZE );
169- ByteBuffer buf = buffers .get (bufIndex ). duplicate () ;
169+ ByteBuffer buf = buffers .get (bufIndex );
170170 buf .position (off );
171171 float value ;
172172 if (buf .remaining () >= 4 ) {
You can’t perform that action at this time.
0 commit comments