minor fixes (#708)

This commit is contained in:
Erik Fröjdh
2023-03-31 11:56:09 +02:00
committed by GitHub
parent 3b8c612103
commit 37e7471dc4
5 changed files with 40 additions and 40 deletions

View File

@ -298,8 +298,8 @@ template <class dataType> class analogDetector {
if (gmap)
delete[] gmap;
gmap = new double[nnx * nny];
for (iy = 0; iy < nny; ++iy) {
for (ix = 0; ix < nnx; ++ix) {
for (iy = 0; iy < static_cast<int>(nny); ++iy) {
for (ix = 0; ix < static_cast<int>(nnx); ++ix) {
gmap[iy * nnx + ix] = gm[iy * nnx + ix];
// cout << gmap[iy*nnx+ix] << " " ;
}