Fix narrowing warning in table constants

fix #344
This commit is contained in:
Vinnie Falco
2017-05-07 13:18:41 -07:00
parent d554b81b06
commit b14102092d
2 changed files with 2 additions and 1 deletions
+1
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:
+1 -1
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