Commit 1bd9b035 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

stl: remove always true comparison

uint8_t cannot be more than 0xff.
parent ffe8bf50
...@@ -92,7 +92,7 @@ static char *ParseText(uint8_t *data, int size, const char *charset) ...@@ -92,7 +92,7 @@ static char *ParseText(uint8_t *data, int size, const char *charset)
char tmp[16] = ""; char tmp[16] = "";
char *t = tmp; char *t = tmp;
if ((code >= 0x20 && code <= 0x7e) || if ((code >= 0x20 && code <= 0x7e) ||
(code >= 0xa0 && code <= 0xff) ) (code >= 0xa0) )
snprintf(tmp, sizeof(tmp), "%c", code); snprintf(tmp, sizeof(tmp), "%c", code);
#if 0 #if 0
else if (code == 0x80) else if (code == 0x80)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment