From 79ea7c6819dc5b5cb3fe7174ba7c6a8d5e1b8832 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Wed, 9 Jan 2019 09:27:13 +0100 Subject: [PATCH] Fix probably typo, don't cast col/row_step to int --- src/Lib/DEM/dem.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lib/DEM/dem.cxx b/src/Lib/DEM/dem.cxx index ab372df7..42f7589b 100644 --- a/src/Lib/DEM/dem.cxx +++ b/src/Lib/DEM/dem.cxx @@ -446,8 +446,8 @@ TGDem::write_area( const string& root, SGBucket& b ) { } gzprintf( fp, "%d %d\n", (int)min_x, (int)min_y ); - gzprintf( fp, "%d %f %d %f\n", span_x + 1, (int)col_step, - span_y + 1, (int)row_step ); + gzprintf( fp, "%d %f %d %f\n", span_x + 1, col_step, + span_y + 1, row_step ); for ( int i = start_x; i <= start_x + span_x; ++i ) { for ( int j = start_y; j <= start_y + span_y; ++j ) { gzprintf( fp, "%d ", (int)dem_data[i][j] );