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

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