From 8f13dae8b4c2703ab5d6213f53d2407d5e0d1cca Mon Sep 17 00:00:00 2001 From: Gareth Evans Date: Wed, 14 Jun 2017 21:32:51 +0100 Subject: [PATCH] Minor short type fix --- inputs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inputs.cc b/inputs.cc index 9017348..00ebceb 100644 --- a/inputs.cc +++ b/inputs.cc @@ -167,7 +167,7 @@ int loadLIDAR(char *filenames, int resample) fflush(stderr); } - // Increase the average cell size + // Increase the "average" cell size avgCellsize += tiles[indx].cellsize; // Update the smallest cell size if (smCellsize == 0 || tiles[indx].cellsize < smCellsize) { @@ -270,7 +270,7 @@ int loadLIDAR(char *filenames, int resample) } size_t new_tile_alloc = new_width * new_height; - short * new_tile = (short*) calloc( new_tile_alloc, sizeof(int) ); + short * new_tile = (short*) calloc( new_tile_alloc, sizeof(short) ); if ( new_tile == NULL ){ free(tiles); return ENOMEM;