forked from bblanchon/ArduinoJson
Fixed warning "conversion may alter value" (issue #914)
This commit is contained in:
1 parent
f3265d2111
commit
20fcb99830
2 files changed
+2
-1
No files matched your search
@@ -306,7 +306,7 @@ class JsonDeserializer {
|
||||
|
||||
static inline uint8_t decodeHex(char c) {
|
||||
if (c < 'A') return uint8_t(c - '0');
|
||||
c &= ~0x20; // uppercase
|
||||
c = char(c & ~0x20); // uppercase
|
||||
return uint8_t(c - 'A' + 10);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user