Merge branch 'release/v0.2.277'

This commit is contained in:
Joshua Suskalo 2021-10-25 09:45:47 -05:00
commit 9a55255739
3 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
## [0.2.277] - 2021-10-25
### Fixed
- Non-primitive arguments on upcalls would generate invalid bytecode with `nil` instructions
## [0.2.259] - 2021-10-16
### Fixed
- Long and double arguments to upcalls failed to compile in some cases
@ -68,6 +73,7 @@ All notable changes to this project will be documented in this file. This change
- Support for serializing and deserializing arbitrary Clojure functions
- Support for serializing and deserializing arbitrary Clojure data structures
[0.2.277]: https://github.com/IGJoshua/coffi/compare/v0.2.259...v0.2.277
[0.2.259]: https://github.com/IGJoshua/coffi/compare/v0.1.251...v0.2.259
[0.1.251]: https://github.com/IGJoshua/coffi/compare/v0.1.246...v0.1.251
[0.1.246]: https://github.com/IGJoshua/coffi/compare/v0.1.241...v0.1.246

View file

@ -16,8 +16,8 @@ This library is available on Clojars. Add one of the following entries to the
`:deps` key of your `deps.edn`:
```clojure
org.suskalo/coffi {:mvn/version "0.2.259"}
io.github.IGJoshua/coffi {:git/tag "v0.2.259" :git/sha "ee5805c"}
org.suskalo/coffi {:mvn/version "0.2.277"}
io.github.IGJoshua/coffi {:git/tag "v0.2.277" :git/sha "2eec1b1"}
```
If you use this library as a git dependency, you will need to prepare the

View file

@ -490,7 +490,7 @@
(if (seq types)
(let [prim (mem/primitive-type (first types))]
(recur (rest types)
(conj acc [[(load-instructions prim) idx]
(conj acc [[(load-instructions prim :aload) idx]
(to-object-asm (first types))])
(cond-> (inc idx)
(double-sized? prim)