mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
Fixed "constant exceeds range of float [-Woverflow]" (issue #544)
This commit is contained in:
@@ -148,16 +148,6 @@
|
||||
#define ARDUINOJSON_NEGATIVE_EXPONENTIATION_THRESHOLD 1e-5
|
||||
#endif
|
||||
|
||||
// how many bits in a double
|
||||
#ifndef ARDUINOJSON_DOUBLE_IS_64BITS
|
||||
#if /*GCC*/ (defined(__SIZEOF_DOUBLE__) && __SIZEOF_DOUBLE__ < 8) || \
|
||||
/*IAR*/ (defined(__DOUBLE__) && __DOUBLE__ < 64)
|
||||
#define ARDUINOJSON_DOUBLE_IS_64BITS 0
|
||||
#else
|
||||
#define ARDUINOJSON_DOUBLE_IS_64BITS 1 // by default support 64-bit
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ARDUINOJSON_USE_LONG_LONG && ARDUINOJSON_USE_INT64
|
||||
#error ARDUINOJSON_USE_LONG_LONG and ARDUINOJSON_USE_INT64 cannot be set together
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user