Fixed warnings floating constant exceeds range of floatand floating constant truncated to zero (issue #483)

This commit is contained in:
Benoit Blanchon
2017-04-20 11:19:29 +02:00
parent 024976cda2
commit c3e1677b7d
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ HEAD
* Added `JsonObject::remove(iterator)`
* Renamed `JsonArray::removeAt(size_t)` into `remove(size_t)`
* Renamed folder `include/` to `src/`
* Fixed warnings `floating constant exceeds range of float`and `floating constant truncated to zero` (issue #483)
v5.8.4
------

View File

@ -17,7 +17,7 @@ namespace TypeTraits {
template <typename T, size_t = sizeof(T)>
struct FloatTraits {};
#ifndef ARDUINO_ARCH_AVR // double is 32 bits, so 1e64 gives a warning
#if !defined(__SIZEOF_DOUBLE__) || __SIZEOF_DOUBLE__ >= 8
template <typename T>
struct FloatTraits<T, 8 /*64bits*/> {
typedef int64_t mantissa_type;