Module: check_mk
Branch: master
Commit: 0ca276e5ab75c67beb4bd795d261887955e32b7c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0ca276e5ab75c6…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Aug 17 14:18:26 2016 +0200
Fetched livestatus from downstream.
---
livestatus/src/Renderer.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/livestatus/src/Renderer.cc b/livestatus/src/Renderer.cc
index af8e7ab..ff48e3b 100644
--- a/livestatus/src/Renderer.cc
+++ b/livestatus/src/Renderer.cc
@@ -106,7 +106,8 @@ void Renderer::add(const string &str) { _output->add(str); }
void Renderer::add(const vector<char> &value) { _output->add(value); }
void Renderer::output(double value) {
- if (std::isnan(value)) {
+ // Funny cast for older non-C++11 headers
+ if (static_cast<bool>(std::isnan(value))) {
output(Null());
} else {
ostringstream os;