Merge pull request #92 from doug1234/WarningWar

Fixed the one VS warning I found (warning level 4)
This commit is contained in:
Jan W. Krieger 2023-03-07 18:18:46 +01:00 committed by GitHub
commit bc03f4ce17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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