Change the default of ARDUINOJSON_USE_DOUBLE to 1

This commit is contained in:
Benoit Blanchon
2021-10-19 20:10:47 +02:00
parent 7046c38c84
commit 7764515f56
4 changed files with 4 additions and 3 deletions

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)
------- -------

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)");

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)");

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)