From 5a56ec06360a22712b1de3c8332ba9e6f3577c45 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Fri, 7 Nov 2014 13:27:42 +0100 Subject: [PATCH] Renamed writeInteger to writeLong to be more consistent --- include/ArduinoJson/Internals/JsonWriter.hpp | 2 +- src/JsonVariant.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ArduinoJson/Internals/JsonWriter.hpp b/include/ArduinoJson/Internals/JsonWriter.hpp index 7b398023..e50ea322 100644 --- a/include/ArduinoJson/Internals/JsonWriter.hpp +++ b/include/ArduinoJson/Internals/JsonWriter.hpp @@ -43,7 +43,7 @@ class JsonWriter { _length += QuotedString::printTo(value, _sink); } - void writeInteger(long value) { _length += _sink.print(value); } + void writeLong(long value) { _length += _sink.print(value); } void writeBoolean(bool value) { _length += _sink.print(value ? "true" : "false"); diff --git a/src/JsonVariant.cpp b/src/JsonVariant.cpp index ba03e516..35ab9cc9 100644 --- a/src/JsonVariant.cpp +++ b/src/JsonVariant.cpp @@ -107,7 +107,7 @@ void JsonVariant::writeTo(T &writer) const { break; case JSON_LONG: - writer.writeInteger(_content.asLong); + writer.writeLong(_content.asLong); break; case JSON_BOOLEAN: