From: Chris Hanson Date: Wed, 4 Oct 2006 22:38:41 +0000 (+0000) Subject: Fix bug: sense of test for binary de/normalizers was reversed. X-Git-Tag: 20090517-FFI~912 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=f219fa9af7e12b01ad697d0292b18a41c421a9e1;p=mit-scheme.git Fix bug: sense of test for binary de/normalizers was reversed. --- 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)