aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssl')
-rw-r--r--src/ssl/tls_client.cpp2
-rw-r--r--src/ssl/tls_server.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ssl/tls_client.cpp b/src/ssl/tls_client.cpp
index ad4074ab2..d6d62d59a 100644
--- a/src/ssl/tls_client.cpp
+++ b/src/ssl/tls_client.cpp
@@ -205,7 +205,7 @@ u32bit TLS_Client::read(byte out[], u32bit length)
break;
}
- u32bit got = std::min(read_buf.size(), length);
+ u32bit got = std::min<size_t>(read_buf.size(), length);
read_buf.read(out, got);
return got;
}
diff --git a/src/ssl/tls_server.cpp b/src/ssl/tls_server.cpp
index 3d72d9dca..1503912d0 100644
--- a/src/ssl/tls_server.cpp
+++ b/src/ssl/tls_server.cpp
@@ -166,7 +166,7 @@ u32bit TLS_Server::read(byte out[], u32bit length)
break;
}
- u32bit got = std::min(read_buf.size(), length);
+ u32bit got = std::min<size_t>(read_buf.size(), length);
read_buf.read(out, got);
return got;
}