Fix incorrect pointer alignment
This commit is contained in:
parent
c0244a8b33
commit
990e76c624
2 changed files with 4 additions and 1 deletions
|
|
@ -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 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
|
- 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
|
## [0.5.357] - 2022-07-07
|
||||||
### Removed
|
### Removed
|
||||||
- `:coffi.mem/long-long` primitive type
|
- `:coffi.mem/long-long` primitive type
|
||||||
|
|
|
||||||
|
|
@ -236,7 +236,7 @@
|
||||||
|
|
||||||
(def ^ValueLayout$OfAddress pointer-layout
|
(def ^ValueLayout$OfAddress pointer-layout
|
||||||
"The [[MemoryLayout]] for a native pointer in [[native-endian]] [[ByteOrder]]."
|
"The [[MemoryLayout]] for a native pointer in [[native-endian]] [[ByteOrder]]."
|
||||||
ValueLayout/ADDRESS)
|
(MemoryLayout/valueLayout MemoryAddress native-endian))
|
||||||
|
|
||||||
(def ^long short-size
|
(def ^long short-size
|
||||||
"The size in bytes of a c-sized short."
|
"The size in bytes of a c-sized short."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue