diff options
Diffstat (limited to 'src/tls/tls_alert.cpp')
-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()) }); } |