From: Rob Norris Date: Thu, 12 Nov 2015 22:31:03 +0000 (+0000) Subject: [QA] CID#34594: Remove unsigned compared against 0 (as it has no effect) X-Git-Url: https://git.street.me.uk/andy/viking.git/commitdiff_plain/5f98900f0a914d74b6aba8d1fe33bff0b3134245 [QA] CID#34594: Remove unsigned compared against 0 (as it has no effect) --- diff --git a/src/dem.c b/src/dem.c index 461c2bdf..82930a24 100644 --- a/src/dem.c +++ b/src/dem.c @@ -579,9 +579,7 @@ gint16 vik_dem_get_shepard_interpol ( VikDEM *dem, gdouble east, gdouble north ) void vik_dem_east_north_to_xy ( VikDEM *dem, gdouble east, gdouble north, guint *col, guint *row ) { - *col = (gint) floor((east - dem->min_east) / dem->east_scale); - *row = (gint) floor((north - dem->min_north) / dem->north_scale); - if ( *col < 0 ) *col = 0; - if ( *row < 0 ) *row = 0; + *col = (guint) floor((east - dem->min_east) / dem->east_scale); + *row = (guint) floor((north - dem->min_north) / dem->north_scale); }