[GRASS-SVN] r72718 - grass-addons/grass7/raster/r.fuzzy.logic

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 17 08:04:36 PDT 2018


Author: mlennert
Date: 2018-05-17 08:04:36 -0700 (Thu, 17 May 2018)
New Revision: 72718

Modified:
   grass-addons/grass7/raster/r.fuzzy.logic/main.c
Log:
CELL should be FCELL in messages and FCELL_TYPE test should not be ignored because of spurious semi-colon

Modified: grass-addons/grass7/raster/r.fuzzy.logic/main.c
===================================================================
--- grass-addons/grass7/raster/r.fuzzy.logic/main.c	2018-05-16 21:29:33 UTC (rev 72717)
+++ grass-addons/grass7/raster/r.fuzzy.logic/main.c	2018-05-17 15:04:36 UTC (rev 72718)
@@ -132,7 +132,7 @@
     Rast_get_cellhd(inputx, mapsetx, &cellhdx);
 
     if (Rast_map_type(inputx, mapsetx) != FCELL_TYPE)
-	G_fatal_error(_("<%s> is not of type CELL"), inputx);
+	G_fatal_error(_("<%s> is not of type FCELL"), inputx);
 
     Rast_init_fp_range(&membership_range);
     Rast_read_fp_range(inputx, mapsetx, &membership_range);
@@ -152,8 +152,8 @@
 	infdy = Rast_open_old(inputy, mapsety);
 	Rast_get_cellhd(inputy, mapsety, &cellhdy);
 
-	if (Rast_map_type(inputy, mapsety) != FCELL_TYPE) ;
-	G_fatal_error(_("<%s> is not of type CELL"), inputy);
+	if (Rast_map_type(inputy, mapsety) != FCELL_TYPE) 
+	    G_fatal_error(_("<%s> is not of type FCELL"), inputy);
 
 	Rast_init_fp_range(&membership_range);
 	Rast_read_fp_range(inputy, mapsety, &membership_range);



More information about the grass-commit mailing list