File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 4242import static java .lang .foreign .MemoryLayout .PathElement .groupElement ;
4343import static java .lang .foreign .MemoryLayout .PathElement .sequenceElement ;
4444import static java .lang .foreign .ValueLayout .JAVA_INT ;
45- import static java .lang .foreign .ValueLayout .JAVA_LONG ;
4645import static java .lang .foreign .ValueLayout .JAVA_SHORT ;
4746import static org .testng .Assert .*;
4847
@@ -139,8 +138,8 @@ public void testByteOffsetHandleBadRange() {
139138 @ Test
140139 public void testBadAlignmentOfRoot () {
141140 MemoryLayout struct = MemoryLayout .structLayout (
142- JAVA_INT ,
143- JAVA_SHORT .withName ("x" ));
141+ JAVA_INT . withOrder ( ByteOrder . LITTLE_ENDIAN ) ,
142+ JAVA_SHORT .withOrder ( ByteOrder . LITTLE_ENDIAN ). withName ("x" ));
144143 assertEquals (struct .byteAlignment (), 4 );
145144
146145 try (Arena arena = Arena .ofConfined ()) {
You can’t perform that action at this time.
0 commit comments