aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_extensions.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-28 21:55:14 -0500
committerJack Lloyd <[email protected]>2017-01-28 21:55:14 -0500
commit6a4831cc7efd07e243247d39f2d86c97cd210e38 (patch)
treee13e4211eaaad703ec6c5c63d1882557f7c3e387 /src/lib/tls/tls_extensions.cpp
parent5cbba3ad662fa76090a3bea546a1178a011737a7 (diff)
Add static_cast in uint8_t vs enum comparison.
Sun CC for whatever reason becomes very confused by this.
Diffstat (limited to 'src/lib/tls/tls_extensions.cpp')
-rw-r--r--src/lib/tls/tls_extensions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/tls/tls_extensions.cpp b/src/lib/tls/tls_extensions.cpp
index 7692b2fd3..dfd909c7c 100644
--- a/src/lib/tls/tls_extensions.cpp
+++ b/src/lib/tls/tls_extensions.cpp
@@ -407,13 +407,13 @@ Supported_Point_Formats::Supported_Point_Formats(TLS_Data_Reader& reader,
{
uint8_t format = reader.get_byte();
- if(format == UNCOMPRESSED)
+ if(static_cast<ECPointFormat>(format) == UNCOMPRESSED)
{
m_prefers_compressed = false;
reader.discard_next(len-i-1);
return;
}
- else if(format == ANSIX962_COMPRESSED_PRIME)
+ else if(static_cast<ECPointFormat>(format) == ANSIX962_COMPRESSED_PRIME)
{
m_prefers_compressed = true;
reader.discard_next(len-i-1);