#QUALITY by exept
authorClaus Gittinger <cg@exept.de>
Mon, 26 Aug 2019 23:16:39 +0200
changeset 5170 125d0cc824ff
parent 5169 dbb252dcf51e
child 5171 45a689bbf0d2
#QUALITY by exept class: Queue changed: #nextPut: returns its argument
Queue.st
--- a/Queue.st	Mon Aug 26 23:15:10 2019 +0200
+++ b/Queue.st	Mon Aug 26 23:16:39 2019 +0200
@@ -531,7 +531,7 @@
 
     (tally == sz) ifTrue:[
         self error:'queue is full' mayProceed:true.
-        ^ self
+        ^ anObject
     ].
 
     contentsArray at:pos put:anObject.
@@ -539,6 +539,7 @@
     pos > sz ifTrue:[pos := 1].
     writePosition := pos.
     tally := tally + 1.
+    ^ anObject
 
     "Modified: / 22-02-2017 / 16:33:22 / stefan"
 !