#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Sun, 30 Sep 2018 16:58:56 +0200
changeset 4752 5392065bde5a
parent 4751 e07886fad925
child 4753 5b849ae3a1a1
#REFACTORING by cg class: BaseNCoder changed: #upToEnd
BaseNCoder.st
--- a/BaseNCoder.st	Sun Sep 30 15:56:26 2018 +0200
+++ b/BaseNCoder.st	Sun Sep 30 16:58:56 2018 +0200
@@ -406,17 +406,14 @@
             answerStream nextPut:((buffer bitShift:(8 - bits)) bitAnd:16rFF).
             bits := bits - 8.
         ].
-        atEnd ifTrue:[
-            bits ~~ 0 ifTrue:[
-                answerStream nextPut:(buffer bitAnd:16rFF).
-                bits := 0.
-            ]
-        ] ifFalse:[
+        atEnd ifFalse:[
             self fillBuffer.
         ].
     ] doWhile:[bits > 0].
 
     ^ answerStream contents
+
+    "Modified: / 30-09-2018 / 16:37:03 / Claus Gittinger"
 ! !
 
 !BaseNCoder methodsFor:'subclass responsibility'!