We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b74a493 commit fd3e9f4Copy full SHA for fd3e9f4
1 file changed
sjsonnet/src/sjsonnet/ValScope.scala
@@ -22,8 +22,7 @@ final class ValScope private (val bindings: Array[Lazy]) extends AnyVal {
22
newBindings: Array[Lazy],
23
newSelf: Val.Obj,
24
newSuper: Val.Obj): ValScope = {
25
- val by = newBindings.length + 2
26
- val b = Arrays.copyOf(bindings, bindings.length + by)
+ val b = Arrays.copyOf(bindings, bindings.length + newBindings.length + 2)
27
b(bindings.length) = newSelf
28
b(bindings.length + 1) = newSuper
29
System.arraycopy(newBindings, 0, b, bindings.length + 2, newBindings.length)
0 commit comments