From ad63e9fa6b41ca710e27dad621e34f1bc9bcd305 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 9 Apr 2016 16:00:08 +0200 Subject: [PATCH] Cast 0xff to char before comparing it to another char. Clang warned about this. --- src/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy.c b/src/proxy.c index 165d3f3..e30c1fb 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -203,7 +203,7 @@ int receive_proxy_meta(connection_t *c, int start, int lenin) { case PROXY_SOCKS5: if(c->buflen < 2) return 0; - if(c->buffer[0] != 0x05 || c->buffer[1] == 0xff) { + if(c->buffer[0] != 0x05 || c->buffer[1] == (char)0xff) { logger(LOG_ERR, "Proxy authentication method rejected"); return -1; } -- 2.25.1