diff --git a/mainwindow.cpp b/mainwindow.cpp index 900c0ddd..91702d04 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -549,7 +549,7 @@ void MainWindow::processSenderCellChange(int line, int col) } break; case SIMP_COL::SC_COL_DATA: //Data bytes - for (int i = 0; i < 8; i++) tempData->payload().data()[i] = 0; + //for (int i = 0; i < 8; i++) tempData->payload().data()[i] = 0; #if QT_VERSION >= QT_VERSION_CHECK( 5, 14, 0 ) tokens = ui->tableSimpleSender->item(line, SIMP_COL::SC_COL_DATA)->text().split(" ", Qt::SkipEmptyParts); diff --git a/re/graphingwindow.cpp b/re/graphingwindow.cpp index 1727cb34..cfa409c2 100644 --- a/re/graphingwindow.cpp +++ b/re/graphingwindow.cpp @@ -782,7 +782,7 @@ void GraphingWindow::saveSpreadsheet() for (auto && graph : graphParams) { xMin = std::min(xMin, graph.x[0]); xMax = std::max(xMax, graph.x[graph.x.count() - 1]); - maxCount = std::max(maxCount, graph.x.count()); + maxCount = std::max((qsizetype)maxCount, graph.x.count()); } qDebug() << "xMin: " << xMin; qDebug() << "xMax: " << xMax;