8000 Fixed warning "conversion may alter value" (issue #914) · joglosemarduino/ArduinoJson@20fcb99 · GitHub
[go: up one dir, main page]

Skip to content

Commit 20fcb99

Browse files
committed
Fixed warning "conversion may alter value" (issue bblanchon#914)
1 parent f3265d2 commit 20fcb99

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ HEAD
66

77
* Fixed warning "unused variable" with GCC 4.4 (issue #912)
88
* Fixed warning "cast increases required alignment" (issue #914)
9+
* Fixed warning "conversion may alter value" (issue #914)
910
* Added a clear error message for `StaticJsonBuffer` and `DynamicJsonBuffer`
1011

1112
v6.9.0 (2019-02-26)

src/ArduinoJson/Json/JsonDeserializer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ class JsonDeserializer {
306306

307307
static inline uint8_t decodeHex(char c) {
308308
if (c < 'A') return uint8_t(c - '0');
309-
c &= ~0x20; // uppercase
309+
c = char(c & ~0x20); // uppercase
310310
return uint8_t(c - 'A' + 10);
311311
}
312312

0 commit comments

Comments
 (0)
0