Fix incorrect pointer alignment

This commit is contained in:
Joshua Suskalo 2022-10-31 11:36:16 -05:00
parent c0244a8b33
commit 990e76c624
No known key found for this signature in database
GPG key ID: 9B6BA586EFF1B9F0
2 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,9 @@ All notable changes to this project will be documented in this file. This change
- New macros for defining vars with values from native code
- New function to allow getting the backing memory segment of a `coffi.ffi.StaticVariable`, to replace the `Addressable` implementation lost in the migration to JDK 18
### Fixed
- Bug where pointer alignment was incorrectly defined
## [0.5.357] - 2022-07-07
### Removed
- `:coffi.mem/long-long` primitive type

View file

@ -236,7 +236,7 @@
(def ^ValueLayout$OfAddress pointer-layout
"The [[MemoryLayout]] for a native pointer in [[native-endian]] [[ByteOrder]]."
ValueLayout/ADDRESS)
(MemoryLayout/valueLayout MemoryAddress native-endian))
(def ^long short-size
"The size in bytes of a c-sized short."