Skip to content

Commit 258291d

Browse files
no longer hijacking handle data field to store type since we now get it reliably in the accessor (thanks, grovel)
1 parent 5c90485 commit 258291d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

util.lisp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
"Allocate a handle object (free with free-handle)."
8484
(let* ((size (gethash type *handle-sizes*))
8585
(handle (cffi:foreign-alloc :char :count size)))
86-
(setf (uv-a:uv-handle-s-data handle) (cffi:make-pointer (handle-to-val type)))
8786
handle))
8887

8988
(defun alloc-req (type)
@@ -104,7 +103,7 @@
104103

105104
(defun handle-type (handle-ptr)
106105
"Given a libuv handle, return its type."
107-
(handle-from-val (cffi:pointer-address (uv-a:uv-handle-s-data handle-ptr))))
106+
(handle-from-val (uv-a:uv-handle-s-type handle-ptr)))
108107

109108
(defun handle-to-val (handle-keyword)
110109
"Get a handle enuma val from its name."

0 commit comments

Comments
 (0)