summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-03-05 15:23:53 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-03-12 02:47:47 +0000
commite5e1e056e8141e97321bde1ed0ce109fe8f19890 (patch)
treec1df7268a1eef1862e8c46b1cd9d541c16e4ffad /src/network
parentaa246e487cc2daeee43e478dc969fa5649cafef4 (diff)
Silence MSVC warning about 64-bit conversion (loss of data)
One of the reasons why we use "int" everywhere: to avoid this annoyance about different types and having to explicitly cast to silence the compiler. qsslsocket_openssl.cpp(690) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data Change-Id: Ia0aac2f09e9245339951ffff13c8bdad334ce108 Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/ssl/qsslsocket_openssl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/ssl/qsslsocket_openssl.cpp b/src/network/ssl/qsslsocket_openssl.cpp
index 4c1fc0f768..4d092a8109 100644
--- a/src/network/ssl/qsslsocket_openssl.cpp
+++ b/src/network/ssl/qsslsocket_openssl.cpp
@@ -687,7 +687,7 @@ void QSslSocketPrivate::resetDefaultEllipticCurves()
if (q_EC_get_builtin_curves(builtinCurves.data(), curveCount) == curveCount) {
for (size_t i = 0; i < curveCount; ++i) {
QSslEllipticCurve curve;
- curve.id = builtinCurves[i].nid;
+ curve.id = builtinCurves[int(i)].nid;
curves.append(curve);
}
}