Skip to content

Commit

Permalink
Make 5c889be work for win32-aarch64 too
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Nov 15, 2020
1 parent 2ff29eb commit e3ad29d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/com/sun/jna/Structure.java
Original file line number Diff line number Diff line change
Expand Up @@ -2080,10 +2080,8 @@ public FFIType(Structure ref) {
size = sf.size;
}
}
if( (! Platform.isWindows()) && (
(Platform.isIntel() && Platform.is64Bit())
|| (Platform.isARM())
)) {
if ((Platform.isIntel() && Platform.is64Bit() && !Platform.isWindows())
|| Platform.isARM()) {
// System V x86-64 ABI requires, that in a union aggregate,
// that contains Integer and Double members, the parameters
// must be passed in the integer registers. I.e. in the case
Expand Down

0 comments on commit e3ad29d

Please sign in to comment.