From 8f1ace879f307fa5987623440d76944694e86d65 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Wed, 6 Jul 2022 20:59:52 +0200 Subject: [PATCH 1/2] 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) { From 8a683b6751ec289de741cc3f91f73ef592c9d86c Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Sun, 28 Aug 2022 13:59:16 +0200 Subject: [PATCH 2/2] rdmd: Don't import std.xml for --eval and --loop --- rdmd.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdmd.d b/rdmd.d index f556702..d02cacc 100755 --- a/rdmd.d +++ b/rdmd.d @@ -840,7 +840,7 @@ import std.stdio, std.algorithm, std.array, std.ascii, std.base64, std.random, std.range, std.regex, std.signals, std.socket, std.stdint, std.stdio, std.string, std.windows.syserror, std.system, std.traits, std.typecons, - std.typetuple, std.uni, std.uri, std.utf, std.variant, std.xml, std.zip, + std.typetuple, std.uni, std.uri, std.utf, std.variant, std.zip, std.zlib; ";