We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c90485 commit 258291dCopy full SHA for 258291d
util.lisp
@@ -83,7 +83,6 @@
83
"Allocate a handle object (free with free-handle)."
84
(let* ((size (gethash type *handle-sizes*))
85
(handle (cffi:foreign-alloc :char :count size)))
86
- (setf (uv-a:uv-handle-s-data handle) (cffi:make-pointer (handle-to-val type)))
87
handle))
88
89
(defun alloc-req (type)
@@ -104,7 +103,7 @@
104
103
105
(defun handle-type (handle-ptr)
106
"Given a libuv handle, return its type."
107
- (handle-from-val (cffi:pointer-address (uv-a:uv-handle-s-data handle-ptr))))
+ (handle-from-val (uv-a:uv-handle-s-type handle-ptr)))
108
109
(defun handle-to-val (handle-keyword)
110
"Get a handle enuma val from its name."
0 commit comments