Skip to content

Commit e3ad29d

Browse files
committed
Make 5c889be work for win32-aarch64 too
1 parent 2ff29eb commit e3ad29d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/com/sun/jna/Structure.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,10 +2080,8 @@ public FFIType(Structure ref) {
20802080
size = sf.size;
20812081
}
20822082
}
2083-
if( (! Platform.isWindows()) && (
2084-
(Platform.isIntel() && Platform.is64Bit())
2085-
|| (Platform.isARM())
2086-
)) {
2083+
if ((Platform.isIntel() && Platform.is64Bit() && !Platform.isWindows())
2084+
|| Platform.isARM()) {
20872085
// System V x86-64 ABI requires, that in a union aggregate,
20882086
// that contains Integer and Double members, the parameters
20892087
// must be passed in the integer registers. I.e. in the case

0 commit comments

Comments
 (0)