From: espen Date: Mon, 6 Mar 2006 20:57:08 +0000 (+0000) Subject: Added missing type expansion X-Git-Tag: clg-0-92-1~18 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/commitdiff_plain/2c27e1ce6e692edd5234eba7629db43b9bb15b12?hp=a968b11526f41d93d1e6c7cbc7cbcd1278ec6550 Added missing type expansion --- diff --git a/glib/gtype.lisp b/glib/gtype.lisp index d05cc35..9927c53 100644 --- a/glib/gtype.lisp +++ b/glib/gtype.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: gtype.lisp,v 1.48 2006/02/26 16:12:25 espen Exp $ +;; $Id: gtype.lisp,v 1.49 2006/03/06 20:57:08 espen Exp $ (in-package "GLIB") @@ -386,9 +386,10 @@ (define-type-method copy-from-alien-function ((type ginstance)) (error "Doing copy-from-alien on a ref. counted class is most certainly an error, but if it really is what you want you should use REFERENCE-FOREIGN on the returned instance instead.")) (define-type-method reader-function ((type ginstance)) - #'(lambda (location &optional (offset 0) weak-p) - (declare (ignore weak-p)) - (ensure-proxy-instance type (sap-ref-sap location offset)))) + (let ((class (type-expand type))) + #'(lambda (location &optional (offset 0) weak-p) + (declare (ignore weak-p)) + (ensure-proxy-instance class (sap-ref-sap location offset))))) ;;;; Registering fundamental types