Skip to content

Commit

Permalink
esp-idf: Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed Jul 25, 2023
1 parent 084c866 commit 46f3d82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coap_oscore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1646,8 +1646,8 @@ parse_hex_bin(const char *begin, const char *end) {
binary = coap_new_binary((end - begin) / 2);
if (binary == NULL)
goto bad_entry;
for (i = 0; (i < (size_t)(end - begin)) && isxdigit(begin[i]) &&
isxdigit(begin[i + 1]);
for (i = 0; (i < (size_t)(end - begin)) && isxdigit((u_char)begin[i]) &&
isxdigit((u_char)begin[i + 1]);
i += 2) {
binary->s[i / 2] = (hex2char(begin[i]) << 4) + hex2char(begin[i + 1]);
}
Expand Down

0 comments on commit 46f3d82

Please sign in to comment.