From 163b7db94b8c5c54266cae3a12552ce0640bb7b4 Mon Sep 17 00:00:00 2001 From: Jack Stouffer Date: Wed, 3 Jan 2018 16:05:59 -0500 Subject: [PATCH] Fix BigInt.toString overload See https://github.com/dlang/phobos/pull/5991#issuecomment-355122818 for more information --- std/bigint.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/bigint.d b/std/bigint.d index dffb9694c9c..cc47cde9a2b 100644 --- a/std/bigint.d +++ b/std/bigint.d @@ -915,7 +915,7 @@ public: } /// ditto - void toString(scope void delegate(const(char)[]) sink, ref FormatSpec!char f) const + void toString(scope void delegate(const(char)[]) sink, const ref FormatSpec!char f) const { immutable hex = (f.spec == 'x' || f.spec == 'X'); if (!(f.spec == 's' || f.spec == 'd' || f.spec =='o' || hex))