From 181db81dd67d1555d5ee26db3d629aa253840f10 Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Wed, 15 Sep 2021 12:40:57 -0500 Subject: [PATCH] Give names to the type in size-of --- src/coffi/ffi.clj | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/coffi/ffi.clj b/src/coffi/ffi.clj index 0069456..49cdc5c 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -108,39 +108,39 @@ (fn [type] type)) (defmethod size-of ::byte - [_] + [_type] Byte/SIZE) (defmethod size-of ::short - [_] + [_type] Short/SIZE) (defmethod size-of ::int - [_] + [_type] Integer/SIZE) (defmethod size-of ::long - [_] + [_type] Long/SIZE) (defmethod size-of ::long-long - [_] + [_type] Long/SIZE) (defmethod size-of ::char - [_] + [_type] Byte/SIZE) (defmethod size-of ::float - [_] + [_type] Float/SIZE) (defmethod size-of ::double - [_] + [_type] Double/SIZE) (defmethod size-of ::pointer - [_] + [_type] (.byteSize MemoryLayouts/ADDRESS)) (def c-layout