Skip to content

Commit 6495a48

Browse files
committed
data type changed
1 parent a6ce554 commit 6495a48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chart.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void Chart::startUpdating(const QList<QLineSeries *> &seriesList, const QVector<
2626
}
2727

2828
auto valuesVector = std::vector<qreal>(values.begin(), values.end());
29-
RowVectorXd vector = Map<RowVectorXd, Unaligned>(valuesVector.data(), valuesVector.size());
29+
RowVectorXd vector = Map<RowVectorXd, Unaligned>(valuesVector.data(), (long)valuesVector.size());
3030
// cout << vector << endl;
3131

3232
c_seriesList = seriesList;
@@ -96,8 +96,8 @@ void Chart::removeZeroRows(Eigen::MatrixXd& mat)
9696
{
9797
Matrix<bool, Dynamic, 1> empty = (mat.array() == 0).rowwise().all();
9898

99-
size_t last = mat.rows() - 1;
100-
for (size_t i = 0; i < last + 1;)
99+
auto last = mat.rows() - 1;
100+
for (long i = 0; i < last + 1;)
101101
{
102102
if (empty(i))
103103
{

0 commit comments

Comments
 (0)