some more doc fixes

This commit is contained in:
Roland Kuhn 2014-12-20 16:56:22 +01:00
parent c01de935c8
commit 38539372b5
6 changed files with 34 additions and 12 deletions

View file

@ -48,6 +48,10 @@ object ActorPublisherDocSpec {
@tailrec final def deliverBuf(): Unit =
if (totalDemand > 0) {
/*
* totalDemand is a Long and could be larger than
* what buf.splitAt can accept
*/
if (totalDemand <= Int.MaxValue) {
val (use, keep) = buf.splitAt(totalDemand.toInt)
buf = keep