From ef4332e2047ef61cca266211b9bb7386397850aa Mon Sep 17 00:00:00 2001 From: emarsden <emarsden> Date: Mon, 17 Mar 2003 10:36:42 +0000 Subject: [PATCH] The optional second argument to FILE-POSITION is a positive integer; it can be bigger than an INDEX. --- code/stream.lisp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/stream.lisp b/code/stream.lisp index 2c21ca707..01c588a2a 100644 --- a/code/stream.lisp +++ b/code/stream.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.58 2002/12/12 19:11:11 moore Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.59 2003/03/17 10:36:42 emarsden Exp $") ;;; ;;; ********************************************************************** ;;; @@ -261,8 +261,8 @@ File-Stream is open to. If the second argument is supplied, then this becomes the new file position. The second argument may also be :start or :end for the start and end of the file, respectively." - (declare (stream stream) - (type (or index (member nil :start :end)) position)) + (declare (type stream stream) + (type (or (integer 0) (member nil :start :end)) position)) (cond (position (setf (lisp-stream-in-index stream) in-buffer-length) -- GitLab