We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2acfbdb commit 4059f4cCopy full SHA for 4059f4c
1 file changed
pixie/ffi-infer.pxi
@@ -97,8 +97,10 @@ return 0;
97
98
(defmethod edn-to-ctype :pointer
99
[{:keys [of-type] :as ptr} in-struct?]
100
+ (println ptr in-struct?)
101
(cond
- (and (= of-type {:signed? true :size 1 :type :int})
102
+ (and (= (:size of-type) 1)
103
+ (= (:type of-type) :int)
104
(not in-struct?)) 'pixie.stdlib/CCharP
105
(= (:type of-type) :function) (callback-type of-type in-struct?)
106
:else 'pixie.stdlib/CVoidP))
0 commit comments