mirror of
https://github.com/dlang/tools.git
synced 2025-04-25 20:51:00 +03:00
Backport std.math fix from upstream DustMite
This commit is contained in:
parent
0b2b6934ae
commit
8f1ace879f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue