unsigned char by default compiler compatibility

http://ml.libwebsockets.org/pipermail/libwebsockets/2015-March/001705.html

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2015-03-30 18:56:52 +08:00
parent 87fb73cc65
commit 2a5774edca

View file

@ -164,7 +164,7 @@ int lws_hdr_simple_create(struct libwebsocket *wsi,
return 0;
}
static char char_to_hex(const char c)
static signed char char_to_hex(const char c)
{
if (c >= '0' && c <= '9')
return c - '0';