From 9e19765bdfc477a0d4579fa64c66ba12ff11a0dd Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sat, 16 Feb 2013 12:41:07 -0600 Subject: [PATCH] Fixes MSVC++ C4800 error (converting char to bool) --- websocketpp/http/constants.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocketpp/http/constants.hpp b/websocketpp/http/constants.hpp index 52027cd366..a687f27c15 100644 --- a/websocketpp/http/constants.hpp +++ b/websocketpp/http/constants.hpp @@ -62,7 +62,7 @@ namespace http { }; inline bool is_token_char(unsigned char c) { - return HEADER_TOKEN[c]; + return (HEADER_TOKEN[c] == 1); } inline bool is_not_token_char(unsigned char c) {