From ae7a97d843a66f8b7de8d37d78c853c7cbb1f78d Mon Sep 17 00:00:00 2001 From: pw <pw> Date: Wed, 3 Apr 2002 18:30:40 +0000 Subject: [PATCH] Fix some lossage from rev 1.58 causing read-byte on multi-byte element types to fail. --- code/fd-stream.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/fd-stream.lisp b/code/fd-stream.lisp index 17cafc9c8..706927f72 100644 --- a/code/fd-stream.lisp +++ b/code/fd-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/fd-stream.lisp,v 1.58 2002/02/04 17:22:14 toy Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/fd-stream.lisp,v 1.59 2002/04/03 18:30:40 pw Exp $") ;;; ;;; ********************************************************************** ;;; @@ -857,7 +857,7 @@ (eql size 4)) ;; Support for n-byte operations on 8-, 16-, and 32-bit streams (setf (fd-stream-n-bin stream) #'fd-stream-read-n-bytes) - (when buffer-p + (when (and buffer-p (eql size 1)) (setf (lisp-stream-in-buffer stream) (make-array in-buffer-length :element-type '(unsigned-byte 8))))) -- GitLab