From c011b6b9863920f05a44ef3411010e1062388527 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Mon, 17 Sep 2007 21:43:03 +0200 Subject: PRIMITIVE-INVOKE: Don't break upon invocations with a void return type. darcs-hash:85d12638eaa8b5a775a9f347b30e0b733c6dfd52 --- Lisp/method-invocation.lisp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lisp/method-invocation.lisp b/Lisp/method-invocation.lisp index 29c6d63..bb6282f 100644 --- a/Lisp/method-invocation.lisp +++ b/Lisp/method-invocation.lisp @@ -210,7 +210,9 @@ Returns: *result* --- the return value of the method invocation. (the fixnum (length args))) (objc-arg-ptrs '(:pointer :void) real-argc) - (return-value-cell return-c-type) + (return-value-cell (if (eq return-c-type :void) + :int + return-c-type)) (objc-arg-buffer +pessimistic-allocation-type+ real-argc)) (dotimes (i real-argc) @@ -268,6 +270,7 @@ Returns: *result* --- the return value of the method invocation. (make-instance return-type :pointer (cffi:mem-ref return-value-cell return-c-type)))) + ((:void) (values)) (otherwise (cffi:mem-ref return-value-cell return-c-type))))))))))) -- cgit v1.2.3