From cc6ff9d5d75e09c781c1043dd7651034fcb544ff Mon Sep 17 00:00:00 2001 From: Eli Barzilay Date: Sun, 1 Feb 2009 03:31:41 +0000 Subject: [PATCH] use the cstruct type directly, not via ctype-basetype svn: r13345 --- collects/mzlib/foreign.ss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/collects/mzlib/foreign.ss b/collects/mzlib/foreign.ss index 34065bdbc0..d7907a6119 100644 --- a/collects/mzlib/foreign.ss +++ b/collects/mzlib/foreign.ss @@ -1394,9 +1394,10 @@ (define all-tags (cons TYPE-tag super-tags)) (define _TYPE* ;; c->scheme adjusts all tags - (let* ([t (_cpointer TYPE-tag (make-cstruct-type types))] + (let* ([cst (make-cstruct-type types)] + [t (_cpointer TYPE-tag cst)] [c->s (ctype-c->scheme t)]) - (make-ctype (ctype-basetype t) (ctype-scheme->c t) + (make-ctype cst (ctype-scheme->c t) ;; hack: modify & reuse the procedure made by _cpointer (lambda (p) (if p (set-cpointer-tag! p all-tags) (c->s p))