Skip to content

Commit 850d2f9

Browse files
authored
Merge pull request scala/scala#8767 from som-snytt/issue/trav-null
Expression for all zero bits
2 parents 11c18aa + da316c4 commit 850d2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/collection/IterableOnce.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ trait IterableOnceOps[+A, +CC[_], +C] extends Any { this: IterableOnce[A] =>
723723
throw new UnsupportedOperationException("empty.reduceLeft")
724724

725725
var first = true
726-
var acc: B = 0.asInstanceOf[B]
726+
var acc: B = null.asInstanceOf[B]
727727

728728
while (it.hasNext) {
729729
val x = it.next()

0 commit comments

Comments
 (0)