Backport std.math fix from upstream DustMite

This commit is contained in:
Iain Buclaw 2022-07-06 20:59:52 +02:00 committed by The Dlang Bot
parent 0b2b6934ae
commit 8f1ace879f

View file

@ -1331,7 +1331,7 @@ void fuzz(ref Entity root)
{ {
import std.math : log2; import std.math : log2;
auto newRoot = root; 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; Reduction[] reductions;
foreach (n; 0 .. numReductions) foreach (n; 0 .. numReductions)
{ {