Skip to content

Commit

Permalink
Fix warning about range step (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen authored Oct 5, 2024
1 parent c04ea9e commit 018aac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stream_data.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ defmodule StreamData do
defp power_of_two_with_zero(abs_exp) do
new(fn seed, _size ->
{integer, _} = uniform_in_range(0, power_of_two(abs_exp), seed)
powers = Stream.map(abs_exp..0, &lazy_tree_constant(power_of_two(&1)))
powers = Stream.map(abs_exp..0//-1, &lazy_tree_constant(power_of_two(&1)))
lazy_tree(integer, Enum.concat(powers, [lazy_tree_constant(0)]))
end)
end
Expand Down

0 comments on commit 018aac0

Please sign in to comment.