Fix some MSVC warnings

* Implicit conversion of size_t to int
* Comparing bool with operator >

Change-Id: I4bc5bef57bfa0125b1c82953a7a2cfc24066bc8c
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2021-10-14 22:32:09 +03:00
committed by Orgad Shaneh
parent e1a15b2db5
commit 5365dd531b
5 changed files with 9 additions and 9 deletions

View File

@@ -133,7 +133,7 @@ template <class T>
void readNumericVectorHelper(std::vector<double> *v, const QByteArray &ba)
{
const auto p = (const T*)ba.data();
const int n = ba.size() / sizeof(T);
const int n = int(ba.size() / sizeof(T));
v->resize(n);
// Losing precision in case of 64 bit ints is ok here, as the result
// is only used to plot data.