From f219fa9af7e12b01ad697d0292b18a41c421a9e1 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 4 Oct 2006 22:38:41 +0000 Subject: [PATCH] Fix bug: sense of test for binary de/normalizers was reversed. --- v7/src/runtime/fileio.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/v7/src/runtime/fileio.scm b/v7/src/runtime/fileio.scm index ee8df53bb..2233b9856 100644 --- a/v7/src/runtime/fileio.scm +++ b/v7/src/runtime/fileio.scm @@ -1,9 +1,9 @@ #| -*-Scheme-*- -$Id: fileio.scm,v 1.29 2006/10/04 19:02:10 cph Exp $ +$Id: fileio.scm,v 1.30 2006/10/04 22:38:41 cph Exp $ Copyright 1991,1993,1994,1995,1996,1999 Massachusetts Institute of Technology -Copyright 2001,2004,2005 Massachusetts Institute of Technology +Copyright 2001,2004,2005,2006 Massachusetts Institute of Technology This file is part of MIT/GNU Scheme. @@ -105,10 +105,12 @@ USA. (not (eq? (port/input-channel port) (port/output-channel port)))) (error:bad-range-argument port caller)) (if (and (input-port? port) - (input-buffer-using-binary-normalizer? (port-input-buffer port))) + (not (input-buffer-using-binary-normalizer? + (port-input-buffer port)))) (error:bad-range-argument port caller)) (if (and (output-port? port) - (output-buffer-using-binary-denormalizer? (port-output-buffer port))) + (not (output-buffer-using-binary-denormalizer? + (port-output-buffer port)))) (error:bad-range-argument port caller))) (define (open-input-file filename) -- 2.25.1