Change the default of ARDUINOJSON_USE_DOUBLE to 1

This commit is contained in:
Benoit Blanchon committed 2021-10-19 22:25:45 +02:00
1 parent 7046c38c84
commit 7764515f56
4 files changed
+4 -3

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ HEAD
* Remove `ARDUINOJSON_EMBEDDED_MODE` and assume we run on an embedded platform. * Remove `ARDUINOJSON_EMBEDDED_MODE` and assume we run on an embedded platform.
Dependent settings (like `ARDUINOJSON_DEFAULT_NESTING_LIMIT`) must be set individually. Dependent settings (like `ARDUINOJSON_DEFAULT_NESTING_LIMIT`) must be set individually.
* Change the default of `ARDUINOJSON_USE_DOUBLE` to `1`
v6.18.5 (2021-09-28) v6.18.5 (2021-09-28)
------- -------
+1 -1
View File
@@ -7,7 +7,7 @@ static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 1,
static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN"); static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN");
static_assert(ARDUINOJSON_USE_DOUBLE == 0, "ARDUINOJSON_USE_DOUBLE"); static_assert(ARDUINOJSON_USE_DOUBLE == 1, "ARDUINOJSON_USE_DOUBLE");
static_assert(sizeof(ARDUINOJSON_NAMESPACE::VariantSlot) == 8, static_assert(sizeof(ARDUINOJSON_NAMESPACE::VariantSlot) == 8,
"sizeof(VariantSlot)"); "sizeof(VariantSlot)");
+1 -1
View File
@@ -7,7 +7,7 @@ static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 2,
static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN"); static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN");
static_assert(ARDUINOJSON_USE_DOUBLE == 0, "ARDUINOJSON_USE_DOUBLE"); static_assert(ARDUINOJSON_USE_DOUBLE == 1, "ARDUINOJSON_USE_DOUBLE");
static_assert(sizeof(ARDUINOJSON_NAMESPACE::VariantSlot) == 16, static_assert(sizeof(ARDUINOJSON_NAMESPACE::VariantSlot) == 16,
"sizeof(VariantSlot)"); "sizeof(VariantSlot)");
+1 -1
View File
@@ -78,7 +78,7 @@
// Store floating-point values with float (0) or double (1) // Store floating-point values with float (0) or double (1)
#ifndef ARDUINOJSON_USE_DOUBLE #ifndef ARDUINOJSON_USE_DOUBLE
# define ARDUINOJSON_USE_DOUBLE 0 # define ARDUINOJSON_USE_DOUBLE 1
#endif #endif
// Store integral values with long (0) or long long (1) // Store integral values with long (0) or long long (1)