Skip to content
Snippets Groups Projects
Commit c5c2c72d authored by Craig Tiller's avatar Craig Tiller
Browse files

Appease the casting gods

parent 17ed6b17
No related branches found
No related tags found
No related merge requests found
...@@ -81,9 +81,9 @@ static bool valid_hex(const uint8_t *p, const uint8_t *end) { ...@@ -81,9 +81,9 @@ static bool valid_hex(const uint8_t *p, const uint8_t *end) {
} }
static uint8_t dehex(uint8_t c) { static uint8_t dehex(uint8_t c) {
if (c >= '0' && c <= '9') return c - '0'; if (c >= '0' && c <= '9') return (uint8_t)(c - '0');
if (c >= 'A' && c <= 'F') return c - 'A' + 10; if (c >= 'A' && c <= 'F') return (uint8_t)(c - 'A' + 10);
if (c >= 'a' && c <= 'f') return c - 'a' + 10; if (c >= 'a' && c <= 'f') return (uint8_t)(c - 'a' + 10);
GPR_UNREACHABLE_CODE(return 255); GPR_UNREACHABLE_CODE(return 255);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment