Fix enum and non-enum in conditional exp. warning

This commit is contained in:
Gyorgy Szekely
2017-10-03 06:13:11 -07:00
committed by Vinnie Falco
parent f5f1b7d6fa
commit 471638c60e
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
Version 121:
* Add test for issue 802
* Fix enum and non-enum in conditional exp. warning
--------------------------------------------------------------------------------
+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;
}