Fix narrowing warning in table constants

fix #344
This commit is contained in:
Vinnie Falco
2017-05-07 11:34:20 -07:00
parent 434d4d0a55
commit 43cf3ae1f8
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
* Fix flat_streambuf
* Add ub sanitizer blacklist
* Add -funsigned-char to asan build target
* Fix narrowing warning in table constants
WebSocket:

View File

@ -238,7 +238,7 @@ inline
std::int8_t
unhex(char c)
{
static char constexpr tab[] = {
static signed char constexpr tab[] = {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 16
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 32