◐ Shell
clean mode source ↗

fix a typo in ByteBufferProxy by huahaiy · Pull Request #172 · lmdbjava/lmdbjava

Expand Up @@ -2,7 +2,7 @@ * #%L * LmdbJava * %% * Copyright (C) 2016 - 2020 The LmdbJava Open Source Project * Copyright (C) 2016 - 2021 The LmdbJava Open Source Project * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Expand Down Expand Up @@ -133,7 +133,7 @@ public static int compareBuff(final ByteBuffer o1, final ByteBuffer o2) { final int minWords = minLength / Long.BYTES;
final boolean reverse1 = o1.order() == LITTLE_ENDIAN; final boolean reverse2 = o1.order() == LITTLE_ENDIAN; final boolean reverse2 = o2.order() == LITTLE_ENDIAN; for (int i = 0; i < minWords * Long.BYTES; i += Long.BYTES) { final long lw = reverse1 ? reverseBytes(o1.getLong(i)) : o1.getLong(i); final long rw = reverse2 ? reverseBytes(o2.getLong(i)) : o2.getLong(i); Expand Down