make tests green again

This commit is contained in:
Andreas Rumpf
2017-11-01 09:13:07 +01:00
parent 009fcc9f84
commit e09b2d898d

View File

@@ -7,7 +7,7 @@ discard """
# bug #5430
proc random*[T](x: Slice[T, T]): T =
proc random*[T](x: Slice[T]): T =
## For a slice `a .. b` returns a value in the range `a .. b-1`.
result = int(x.b - x.a) + x.a