*** empty log message ***
authorca
Fri, 23 Aug 2002 08:08:01 +0200
changeset 1083 5a0ae155f400
parent 1082 3086d4d4f0b9
child 1084 9d51967037ad
*** empty log message ***
CompressionStream.st
--- a/CompressionStream.st	Thu Aug 22 10:29:44 2002 +0200
+++ b/CompressionStream.st	Fri Aug 23 08:08:01 2002 +0200
@@ -582,8 +582,6 @@
     "
     |data count offset species|
 
-    mode == #readonly ifFalse:[ self errorReadOnly ].
-
     species := self contentsSpecies.
 
     self canReadWithoutBlocking ifFalse:[
@@ -606,9 +604,16 @@
     "
     |n avail|
 
-    mode == #readonly ifFalse:[ self errorReadOnly ].
     n := count.
 
+    n > 0 ifFalse:[
+        n ~~ 0 ifTrue:[
+            "dont know how to unread ..."
+            PositionErrorSignal raiseRequest
+        ].
+        ^ self
+    ].
+
     [ self canReadWithoutBlocking ] whileTrue:[
         avail := readLimit - position.