jdk/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template
changeset 33665 0599d4cde183
parent 33656 ef901bc43f7a
parent 33662 747a61ad0977
child 36933 3e6453e2d833
--- a/jdk/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template	Thu Nov 05 20:00:53 2015 +0100
+++ b/jdk/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template	Fri Nov 06 11:34:03 2015 +0100
@@ -477,7 +477,7 @@
 #if[rw]
 
     public float getFloat() {
-        int x = unsafe.getIntUnaligned(hb, byteOffset(nextPutIndex(4)), bigEndian);
+        int x = unsafe.getIntUnaligned(hb, byteOffset(nextGetIndex(4)), bigEndian);
         return Float.intBitsToFloat(x);
     }