From a568c1c5d619e3d8a76465b5ddaafc4c4071f9d9 Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Wed, 15 Sep 2021 12:43:18 -0500 Subject: [PATCH] Update example to use new address manipulation --- src/coffi/ffi.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coffi/ffi.clj b/src/coffi/ffi.clj index 125b841..ddd86f4 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -245,7 +245,7 @@ "someFunc" [::pointer] ::int [] (let [out-int (alloc-instance ::int) - success? (zero? (some-func (.address out-int)))] + success? (zero? (some-func (address-of out-int)))] (if success? (deserialize ::int out-int) (throw (ex-info (getErrorString) {})))))