Fixed warning "conversion may alter value" (issue #914)

This commit is contained in:
Benoit Blanchon
2019-02-28 17:23:44 +01:00
parent f3265d2111
commit 20fcb99830
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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);
} }