From 900112b6e42a1997ad2f9119427c46e37ea1963e Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Mon, 10 Jan 2022 14:22:19 -0600 Subject: [PATCH] Fix bug where characters were read as java characters --- src/clj/coffi/mem.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/coffi/mem.clj b/src/clj/coffi/mem.clj index b003216..cf8bf38 100644 --- a/src/clj/coffi/mem.clj +++ b/src/clj/coffi/mem.clj @@ -550,7 +550,7 @@ (defmethod deserialize-from ::char [segment _type] - (MemoryAccess/getChar segment)) + (char (Byte/toUnsignedInt (MemoryAccess/getByte segment)))) (defmethod deserialize-from ::float [segment _type]