Fixed: Change 1.28 removed the check that output ports passed to
authorArthur Gleckler <edu/mit/csail/zurich/arthur>
Thu, 5 Oct 2006 05:44:39 +0000 (05:44 +0000)
committerArthur Gleckler <edu/mit/csail/zurich/arthur>
Thu, 5 Oct 2006 05:44:39 +0000 (05:44 +0000)
`port-position' and `set-port-position!' must also be input ports.

v7/src/runtime/fileio.scm

index 2233b9856030a428770099af9e088f4dfa40b087..4ca5b7fee67df74c76613fdfdbd701728164d60f 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: fileio.scm,v 1.30 2006/10/04 22:38:41 cph Exp $
+$Id: fileio.scm,v 1.31 2006/10/05 05:44:39 savannah-arthur Exp $
 
 Copyright 1991,1993,1994,1995,1996,1999 Massachusetts Institute of Technology
 Copyright 2001,2004,2005,2006 Massachusetts Institute of Technology
@@ -109,8 +109,9 @@ USA.
                 (port-input-buffer port))))
       (error:bad-range-argument port caller))
   (if (and (output-port? port)
-          (not (output-buffer-using-binary-denormalizer?
-                (port-output-buffer port))))
+          (or (not (input-port? port))
+              (not (output-buffer-using-binary-denormalizer?
+                    (port-output-buffer port)))))
       (error:bad-range-argument port caller)))
 \f
 (define (open-input-file filename)