Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.2.0
Description
BuddyAllocator.java
// Utility methods used to store pairs of ints as long. private static long makeIntPair(int first, int second) { return ((long)first) << 32 | second; } private static int getFirstInt(long result) { return (int) (result >>> 32); } private static int getSecondInt(long result) { return (int) (result & ((1L << 32) - 1)); }
long result = LLAP.makeIntPair(Integer.MIN_VALUE, Integer.MIN_VALUE); if (LLAP.getFirstInt(result) != Integer.MIN_VALUE) { throw new Exception(); } if (LLAP.getSecondInt(result) != Integer.MIN_VALUE) { throw new Exception(); } /* * Exception in thread "main" java.lang.Exception * at org.test.TestMe.main(TestMe.java:19) */
Attachments
Issue Links
- links to