GT-3148: Corrected conversion of BigInteger to byte array to remove

array out of bounds exception in PowerPC vectorPermute pcodeop
This commit is contained in:
ghidorahrex 2019-09-12 12:08:46 -04:00 committed by ghidra1
parent d9da0f0b66
commit fccabd9950
2 changed files with 43 additions and 42 deletions

View file

@ -15,8 +15,7 @@
*/
package ghidra.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import static org.junit.Assert.*;
import java.util.*;
import java.util.stream.Collectors;
@ -284,7 +283,7 @@ public class NumericUtilitiesTest {
}
@Test
public void testGetUnsigndeAlignedValue() {
public void testGetUnsignedAlignedValue() {
assertEquals(0, NumericUtilities.getUnsignedAlignedValue(0xffffffffffffffffL, 8));
assertEquals(0xfffffffffffffff8L,