Fixed passing argument to to!string (it cannot handle inout args - bug in phobos?)

This commit is contained in:
Daniele Bondì 2020-02-29 22:59:18 +01:00
parent e9b0a20482
commit bbfb1ce96f
1 changed files with 2 additions and 2 deletions

View File

@ -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: