From 8f1ace879f307fa5987623440d76944694e86d65 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Wed, 6 Jul 2022 20:59:52 +0200 Subject: [PATCH] Backport std.math fix from upstream DustMite --- DustMite/dustmite.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DustMite/dustmite.d b/DustMite/dustmite.d index 7fd8def..ec7abf2 100644 --- a/DustMite/dustmite.d +++ b/DustMite/dustmite.d @@ -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) {