From c7fb77203bd9113f633f7db78e1490ab7634b428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanchon?= Date: Wed, 2 Jul 2014 13:49:23 +0200 Subject: [PATCH] Replace C++11 syntax that what not supported by the Arduino IDE --- JsonGenerator/JsonValue.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/JsonGenerator/JsonValue.h b/JsonGenerator/JsonValue.h index 7892f716..356d9974 100644 --- a/JsonGenerator/JsonValue.h +++ b/JsonGenerator/JsonValue.h @@ -40,8 +40,10 @@ public: content.asLong = value; } - JsonValue(int value) : JsonValue((long) value) - { + JsonValue(int value) + : implementation(&JsonValue::printLongTo) + { + content.asLong = value; } JsonValue(Printable& value)