Skip to content

Commit

Permalink
fix layout alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Sep 28, 2023
1 parent eb739e3 commit c22caa7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main/java/org/fusesource/jansi/ffm/Kernel32.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,16 +333,16 @@ static MethodHandle downcallHandle(String name, FunctionDescriptor fdesc) {

static final OfBoolean C_BOOL$LAYOUT = ValueLayout.JAVA_BOOLEAN;
static final OfByte C_CHAR$LAYOUT = ValueLayout.JAVA_BYTE;
static final OfChar C_WCHAR$LAYOUT = ValueLayout.JAVA_CHAR.withByteAlignment(16);
static final OfShort C_SHORT$LAYOUT = ValueLayout.JAVA_SHORT.withByteAlignment(16);
static final OfShort C_WORD$LAYOUT = ValueLayout.JAVA_SHORT.withByteAlignment(16);
static final OfInt C_DWORD$LAYOUT = ValueLayout.JAVA_INT.withByteAlignment(32);
static final OfInt C_INT$LAYOUT = JAVA_INT.withByteAlignment(32);
static final OfLong C_LONG$LAYOUT = ValueLayout.JAVA_LONG.withByteAlignment(64);
static final OfLong C_LONG_LONG$LAYOUT = ValueLayout.JAVA_LONG.withByteAlignment(64);
static final OfFloat C_FLOAT$LAYOUT = ValueLayout.JAVA_FLOAT.withByteAlignment(32);
static final OfDouble C_DOUBLE$LAYOUT = ValueLayout.JAVA_DOUBLE.withByteAlignment(64);
static final AddressLayout C_POINTER$LAYOUT = ValueLayout.ADDRESS.withByteAlignment(64);
static final OfChar C_WCHAR$LAYOUT = ValueLayout.JAVA_CHAR;
static final OfShort C_SHORT$LAYOUT = ValueLayout.JAVA_SHORT;
static final OfShort C_WORD$LAYOUT = ValueLayout.JAVA_SHORT;
static final OfInt C_DWORD$LAYOUT = ValueLayout.JAVA_INT;
static final OfInt C_INT$LAYOUT = JAVA_INT;
static final OfLong C_LONG$LAYOUT = ValueLayout.JAVA_LONG;
static final OfLong C_LONG_LONG$LAYOUT = ValueLayout.JAVA_LONG;
static final OfFloat C_FLOAT$LAYOUT = ValueLayout.JAVA_FLOAT;
static final OfDouble C_DOUBLE$LAYOUT = ValueLayout.JAVA_DOUBLE;
static final AddressLayout C_POINTER$LAYOUT = ValueLayout.ADDRESS;

// static final MethodHandle WaitForSingleObject$MH =
// downcallHandle("WaitForSingleObject", FunctionDescriptor.of(C_INT$LAYOUT, C_POINTER$LAYOUT,
Expand Down

0 comments on commit c22caa7

Please sign in to comment.