diff --git a/lib/jkqtplotter/jkqtpdatastorage.h b/lib/jkqtplotter/jkqtpdatastorage.h index 79a5a29ef5..4ec9b99eec 100644 --- a/lib/jkqtplotter/jkqtpdatastorage.h +++ b/lib/jkqtplotter/jkqtpdatastorage.h @@ -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(rows_new)); rows=static_cast(datavec.size()); data=datavec.data(); }