sb-bsd-sockets: socket-receive: add default element-type
This commit is contained in:
parent
35e5e14915
commit
54f7f9c424
1 changed files with 1 additions and 1 deletions
|
|
@ -487,7 +487,7 @@ safe_buffer_pointer(cl_object x, cl_index size)
|
|||
|
||||
;; FIXME: How bad is manipulating fillp directly?
|
||||
(defmethod socket-receive ((socket socket) buffer length
|
||||
&key oob peek waitall element-type)
|
||||
&key oob peek waitall (element-type 'ext:byte8))
|
||||
(unless (or buffer length) (error "You have to supply either buffer or length!"))
|
||||
(let ((buffer (or buffer (make-array length :element-type element-type)))
|
||||
(length (or length (length buffer)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue