Fix enum and non-enum in conditional exp. warning

This commit is contained in:
Gyorgy Szekely authored and Vinnie Falco committed 2017-10-03 06:13:11 -07:00
1 parent f5f1b7d6fa
commit 471638c60e
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -1075,7 +1075,8 @@ loop:
// _Start the WebSocket Closing Handshake_
do_fail(
cr.code == close_code::none ?
close_code::normal : cr.code,
close_code::normal :
static_cast<close_code>(cr.code),
error::closed, ec);
return bytes_written;
}