jdk/src/share/classes/java/nio/X-Buffer.java.template
changeset 10137 d92637d3d673
parent 5506 202f599c92aa
child 13563 13c8e8f0302b
--- a/jdk/src/share/classes/java/nio/X-Buffer.java.template	Wed Jul 27 18:10:10 2011 +0100
+++ b/jdk/src/share/classes/java/nio/X-Buffer.java.template	Thu Jul 28 13:34:31 2011 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -1080,7 +1080,11 @@
         int h = 1;
         int p = position();
         for (int i = limit() - 1; i >= p; i--)
+#if[int]
+            h = 31 * h + get(i);
+#else[int]
             h = 31 * h + (int)get(i);
+#end[int]
         return h;
     }