Fix enum and non-enum in conditional exp. warning

This commit is contained in:
Gyorgy Szekely
2017-10-03 12:00:15 +02:00
committed by Vinnie Falco
parent f5f1b7d6fa
commit 471638c60e
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
Version 121: Version 121:
* Add test for issue 802 * Add test for issue 802
* Fix enum and non-enum in conditional exp. warning
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

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