forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
e1a15b2db5
commit
5365dd531b
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user