From 52235e71737b47b648b5511396073f023d08a78e Mon Sep 17 00:00:00 2001 From: Mikael Djurfeldt Date: Tue, 24 Aug 1999 02:23:02 +0000 Subject: [PATCH] fix --- libguile/print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libguile/print.c b/libguile/print.c index 00b4e3ab3..d90c77f3e 100644 --- a/libguile/print.c +++ b/libguile/print.c @@ -693,10 +693,10 @@ scm_prin1 (exp, port, writingp) /* If PORT is a print-state/port pair, use that. Else create a new print-state. */ - if (SCM_NIMP (port) && SCM_CONSP (port)) + if (SCM_NIMP (port) && SCM_PORT_WITH_PS_P (port)) { - pstate_scm = SCM_CDR (port); - port = SCM_CAR (port); + pstate_scm = SCM_PORT_WITH_PS_PS (port); + port = SCM_PORT_WITH_PS_PORT (port); } else {