Skip to content
Snippets Groups Projects
Commit 31183f1d authored by Lars Bilke's avatar Lars Bilke
Browse files

The expression was implicitly casted from integer type to real type.

parent bf4b5b4b
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ bool MeshLayerMapper::LayerMapping(MeshLib::Mesh &new_mesh, const GeoLib::Raster
nodes[i]->updateCoordinates(coords[0], coords[1], noDataReplacementValue);
continue;
}
const double norm = 4/(4-no_data_count);
const double norm = (double)(4)/(4-no_data_count);
std::for_each(weight.begin(), weight.end(), [&norm](double &val){val*=norm;});
}
......
......@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
// *** reading matrix in crs format from file
std::ifstream in(fname_mat.c_str(), std::ios::in | std::ios::binary);
double *A(NULL);
unsigned *iA(NULL), *jA(NULL), n;
unsigned *iA(NULL), *jA(NULL), n = 0;
if (in) {
if (verbose) {
std::cout << "reading matrix from " << fname_mat << " ... " << std::flush;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment