From 2a5774edca48ce535993b15e5c542e42cfc667c0 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 30 Mar 2015 18:56:52 +0800 Subject: [PATCH] unsigned char by default compiler compatibility http://ml.libwebsockets.org/pipermail/libwebsockets/2015-March/001705.html Signed-off-by: Andy Green --- lib/parsers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parsers.c b/lib/parsers.c index 954eeaa4..b4f27a9c 100644 --- a/lib/parsers.c +++ b/lib/parsers.c @@ -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';