Commit 8702f9c46d6a505611fb5a0ebf735c0b1db05e64

Thomas de Grivel 2017-05-28T11:54:35

Fix close

diff --git a/fd-gray.lisp b/fd-gray.lisp
index 3d5b41b..92bc1e5 100644
--- a/fd-gray.lisp
+++ b/fd-gray.lisp
@@ -56,7 +56,7 @@ to read from or write to a closed fd gray stream."))
 (defclass input-stream (stream fundamental-binary-input-stream)
   ((input-buffer :initform (cffi:foreign-alloc :unsigned-char
 					       :count *buffer-size*)
-		 :reader input-buffer)
+		 :accessor input-buffer)
    (input-index :initform 0
 		:accessor input-index
 		:type fixnum+)
@@ -133,7 +133,7 @@ Tries to read once from input-length to input-max (end of buffer)."
 (defclass output-stream (stream fundamental-binary-output-stream)
   ((output-buffer :initform (cffi:foreign-alloc :unsigned-char
 						:count *buffer-size*)
-		  :reader output-buffer)
+		  :accessor output-buffer)
    (output-index :initform 0
 		 :accessor output-index
 		 :type fixnum+)