From f1defb4d05270da453c32e6bf7d6bbf2306730b4 Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Thu, 18 Jan 2007 02:30:37 +0000 Subject: [PATCH] Initialize newly constructed records in keyword constructors to have the proper dispatch tag. --- v7/src/runtime/record.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v7/src/runtime/record.scm b/v7/src/runtime/record.scm index 3311e93b6..483bbe329 100644 --- a/v7/src/runtime/record.scm +++ b/v7/src/runtime/record.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: record.scm,v 1.58 2007/01/05 21:19:28 cph Exp $ +$Id: record.scm,v 1.59 2007/01/18 02:30:37 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -375,6 +375,7 @@ USA. (let ((n (%record-type-length record-type))) (let ((record (%make-record n #f)) (seen? (vector-cons n #f))) + (%record-set! record 0 (%record-type-dispatch-tag record-type)) (do ((kl keyword-list (cddr kl))) ((not (and (pair? kl) (symbol? (car kl)) -- 2.25.1