From 427706d671994d8cd23798c7ad4d910f0d4b2cbd Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Thu, 20 Jun 2019 23:58:15 +0900 Subject: [PATCH] fix: explicitly add float conversion --- toml/value.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toml/value.hpp b/toml/value.hpp index 52d7b43..c0ee601 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -509,7 +509,7 @@ class basic_value : type_(value_t::floating), region_info_(std::make_shared(region_base{})) { - assigner(this->floating_, f); + assigner(this->floating_, static_cast(f)); } template>(std::move(reg))), comments_(region_info_->comments()) { - assigner(this->floating_, f); + assigner(this->floating_, static_cast(f)); } templatecleanup(); this->type_ = value_t::floating; this->region_info_ = std::make_shared(region_base{}); - assigner(this->floating_, f); + assigner(this->floating_, static_cast(f)); return *this; }