From bbfb1ce96fd0cf736b6ada2108e3b824e98c73b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Bond=C3=AC?= Date: Sat, 29 Feb 2020 22:59:18 +0100 Subject: [PATCH] Fixed passing argument to to!string (it cannot handle inout args - bug in phobos?) --- src/dlangui/core/settings.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dlangui/core/settings.d b/src/dlangui/core/settings.d index 6f287fd9..ef9d5b6d 100644 --- a/src/dlangui/core/settings.d +++ b/src/dlangui/core/settings.d @@ -498,7 +498,7 @@ final class Setting { case UINTEGER: return to!string(_store.uinteger); case FLOAT: - return to!string(_store.floating); + return to!string(cast(double)_store.floating); case TRUE: return "true"; case FALSE: @@ -519,7 +519,7 @@ final class Setting { case UINTEGER: return to!string(_store.uinteger); case FLOAT: - return to!string(_store.floating); + return to!string(cast(double)_store.floating); case TRUE: return "true"; case FALSE: