From a92ed973e569324b55cddb128f6f638f3ea1985c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 3 Jul 2018 18:04:51 +0200 Subject: Store floating point numbers in double precision Even on 32-bit systems, Value has enough space to hold a double. --- src/libutil/json.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libutil/json.cc') diff --git a/src/libutil/json.cc b/src/libutil/json.cc index 813b257016e4..0a6fb65f0605 100644 --- a/src/libutil/json.cc +++ b/src/libutil/json.cc @@ -31,6 +31,7 @@ template<> void toJSON(std::ostream & str, const unsigned long & template<> void toJSON(std::ostream & str, const long long & n) { str << n; } template<> void toJSON(std::ostream & str, const unsigned long long & n) { str << n; } template<> void toJSON(std::ostream & str, const float & n) { str << n; } +template<> void toJSON(std::ostream & str, const double & n) { str << n; } template<> void toJSON(std::ostream & str, const std::string & s) { -- cgit 1.4.1