diff options
author | lloyd <[email protected]> | 2013-04-19 17:00:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-04-19 17:00:18 +0000 |
commit | 4ea09d57f384b948624a13acab4e112da2caebfc (patch) | |
tree | 607bfe8d31fb22c3c547cf8983140e211cd0b813 | |
parent | dbe61300e7fb1c6cda9ca0c5c08847235c366255 (diff) |
Avoid warning
-rw-r--r-- | src/tls/tls_alert.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/tls_alert.cpp b/src/tls/tls_alert.cpp index 8723d9e5b..f548bd57b 100644 --- a/src/tls/tls_alert.cpp +++ b/src/tls/tls_alert.cpp @@ -31,8 +31,8 @@ Alert::Alert(const std::vector<byte>& buf) std::vector<byte> Alert::serialize() const { return std::vector<byte>({ - (is_fatal() ? 2 : 1), - (static_cast<byte>(type())) + static_cast<byte>(is_fatal() ? 2 : 1), + static_cast<byte>(type()) }); } |