X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fhost-c-call.lisp;h=7d4c9d7eac5923ef438ac4eb7acc7193915a9942;hb=8eee0d3a30bf39d9f201acff28c92059fe6c3e4e;hp=eb12c398d7fb5b0b59baef3d5d2a3185617a3497;hpb=6fa968aaa8051da23cc3153a1c0e67addbea85f6;p=sbcl.git diff --git a/src/code/host-c-call.lisp b/src/code/host-c-call.lisp index eb12c39..7d4c9d7 100644 --- a/src/code/host-c-call.lisp +++ b/src/code/host-c-call.lisp @@ -82,6 +82,8 @@ (define-alien-type-method (c-string :deport-gen) (type value) (declare (ignore type)) + ;; This SAP taking is safe as DEPORT callers pin the VALUE when + ;; necessary. `(etypecase ,value (null (int-sap 0)) ((alien (* char)) (alien-sap ,value))