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

This commit is contained in:
Benoit Blanchon committed 2017-04-20 14:46:52 +02:00
1 parent 024976cda2
commit c3e1677b7d
2 files changed
+2 -1

No files matched your search

+1 -1
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;