mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-11-01 00:38:27 +01:00 
			
		
		
		
	Fixed warnings floating constant exceeds range of floatand floating constant truncated to zero (issue #483)
				
					
				
			This commit is contained in:
		| @@ -8,6 +8,7 @@ HEAD | |||||||
| * Added `JsonObject::remove(iterator)` | * Added `JsonObject::remove(iterator)` | ||||||
| * Renamed `JsonArray::removeAt(size_t)` into `remove(size_t)` | * Renamed `JsonArray::removeAt(size_t)` into `remove(size_t)` | ||||||
| * Renamed folder `include/` to `src/` | * Renamed folder `include/` to `src/` | ||||||
|  | * Fixed warnings `floating constant exceeds range of float`and `floating constant truncated to zero` (issue #483) | ||||||
|  |  | ||||||
| v5.8.4 | v5.8.4 | ||||||
| ------ | ------ | ||||||
|   | |||||||
| @@ -17,7 +17,7 @@ namespace TypeTraits { | |||||||
| template <typename T, size_t = sizeof(T)> | template <typename T, size_t = sizeof(T)> | ||||||
| struct FloatTraits {}; | 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> | template <typename T> | ||||||
| struct FloatTraits<T, 8 /*64bits*/> { | struct FloatTraits<T, 8 /*64bits*/> { | ||||||
|   typedef int64_t mantissa_type; |   typedef int64_t mantissa_type; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user