Skip to content

Commit

Permalink
Backport std.math fix from upstream DustMite
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw authored and dlang-bot committed Jul 6, 2022
1 parent 0b2b693 commit 8f1ace8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DustMite/dustmite.d
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ void fuzz(ref Entity root)
{
import std.math : log2;
auto newRoot = root;
auto numReductions = uniform(1, cast(int)log2(allAddresses.length), rng);
auto numReductions = uniform(1, cast(int)log2(cast(double)allAddresses.length), rng);
Reduction[] reductions;
foreach (n; 0 .. numReductions)
{
Expand Down

0 comments on commit 8f1ace8

Please sign in to comment.