mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fixed warning "conversion may alter value" (issue #914)
This commit is contained in:
		| @@ -6,6 +6,7 @@ HEAD | |||||||
|  |  | ||||||
| * Fixed warning "unused variable" with GCC 4.4 (issue #912) | * Fixed warning "unused variable" with GCC 4.4 (issue #912) | ||||||
| * Fixed warning "cast  increases required alignment" (issue #914) | * Fixed warning "cast  increases required alignment" (issue #914) | ||||||
|  | * Fixed warning "conversion may alter value" (issue #914) | ||||||
| * Added a clear error message for `StaticJsonBuffer` and `DynamicJsonBuffer` | * Added a clear error message for `StaticJsonBuffer` and `DynamicJsonBuffer` | ||||||
|  |  | ||||||
| v6.9.0 (2019-02-26) | v6.9.0 (2019-02-26) | ||||||
|   | |||||||
| @@ -306,7 +306,7 @@ class JsonDeserializer { | |||||||
|  |  | ||||||
|   static inline uint8_t decodeHex(char c) { |   static inline uint8_t decodeHex(char c) { | ||||||
|     if (c < 'A') return uint8_t(c - '0'); |     if (c < 'A') return uint8_t(c - '0'); | ||||||
|     c &= ~0x20;  // uppercase |     c = char(c & ~0x20);  // uppercase | ||||||
|     return uint8_t(c - 'A' + 10); |     return uint8_t(c - 'A' + 10); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user