Fixed the one VS warning I found (warning level 4)

This commit is contained in:
doug1234 2023-01-28 10:55:17 -05:00
parent 0d9791cf7c
commit 2bc76761a0

View File

@ -2307,7 +2307,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPDatastoreItem {
/** \brief if \c isValid() : resize the row to have \a rows_new rows */ /** \brief if \c isValid() : resize the row to have \a rows_new rows */
inline void resize(size_t rows_new) { inline void resize(size_t rows_new) {
JKQTPASSERT(isVector()); JKQTPASSERT(isVector());
datavec.resize(rows_new); datavec.resize(static_cast<int>(rows_new));
rows=static_cast<size_t>(datavec.size()); rows=static_cast<size_t>(datavec.size());
data=datavec.data(); data=datavec.data();
} }