We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a363745 commit a6b1d8cCopy full SHA for a6b1d8c
spray-json/jvm/src/test/scala/spray/json/JsonParserSpecJvm.scala
@@ -60,7 +60,9 @@ class JsonParserSpecJvm extends Specification {
60
queue.peek
61
}
62
63
- val i: Int = Iterator.iterate(1)(1.+).indexWhere(depth => probe(depth, maxDepth = 1000) contains "stackoverflow")
+ // Explicit type needed to compile on Scala 2.10, can be inlined later
64
+ def inc(i: Int): Int = 1 + i
65
+ val i: Int = Iterator.iterate(1)(inc).indexWhere(depth => probe(depth, maxDepth = 1000) contains "stackoverflow")
66
println(s"Overflowing stack at $i which means we need about ${stackSize / i} bytes per recursive call")
67
68
val maxDepth = i / 4 // should give lots of room
0 commit comments