aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-04-19 17:00:18 +0000
committerlloyd <[email protected]>2013-04-19 17:00:18 +0000
commit4ea09d57f384b948624a13acab4e112da2caebfc (patch)
tree607bfe8d31fb22c3c547cf8983140e211cd0b813
parentdbe61300e7fb1c6cda9ca0c5c08847235c366255 (diff)
Avoid warning
-rw-r--r--src/tls/tls_alert.cpp4
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())
});
}