Commit bb592649 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

add comments regarding strange compiler warnings

parent 145541d0
...@@ -615,6 +615,8 @@ class GridderConfig ...@@ -615,6 +615,8 @@ class GridderConfig
if (i2>=nu) i2-=nu; if (i2>=nu) i2-=nu;
size_t j2 = nv-ny_dirty/2+j; size_t j2 = nv-ny_dirty/2+j;
if (j2>=nv) j2-=nv; if (j2>=nv) j2-=nv;
// FIXME: for some reason g++ warns about double-to-float conversion
// here, even though there is an explicit cast...
dirty(i,j) = tmav(i2,j2)*T(cfu[i]*cfv[j]); dirty(i,j) = tmav(i2,j2)*T(cfu[i]*cfv[j]);
} }
} }
...@@ -652,6 +654,8 @@ class GridderConfig ...@@ -652,6 +654,8 @@ class GridderConfig
if (i2>=nu) i2-=nu; if (i2>=nu) i2-=nu;
size_t j2 = nv-ny_dirty/2+j; size_t j2 = nv-ny_dirty/2+j;
if (j2>=nv) j2-=nv; if (j2>=nv) j2-=nv;
// FIXME: for some reason g++ warns about double-to-float conversion
// here, even though there is an explicit cast...
grid(i2,j2) = dirty(i,j)*T(cfu[i]*cfv[j]); grid(i2,j2) = dirty(i,j)*T(cfu[i]*cfv[j]);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment