[GRASS-dev] [GRASS GIS] #2357: r3.info segfaults or reports incorrect values on Windows

GRASS GIS trac at osgeo.org
Thu Jul 3 20:42:45 PDT 2014


#2357: r3.info segfaults or reports incorrect values on Windows
-------------------------+--------------------------------------------------
 Reporter:  annakrat     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.1.0                    
Component:  Raster3D     |     Version:  svn-releasebranch70      
 Keywords:  r3.info      |    Platform:  MSWindows 8              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by wenzeslaus):

 I seems that some C standards allow `l` to precede `f` but they also say
 that `lf` is the same as `f`. From this it seems that on MS Windows,
 because of MinGW or whatever, `lf` have unpredictable behavior. So, since
 it is not different form `f` (both mean `double`),  I suggest to replace
 all occurrences of `lf` by `f`.

 Also, the fact that there is more than `format_double()` function tells me
 that it should be moved to the library. It might also avoid possibility of
 bugs like this.  The function looks pretty general, or at least, it is
 used generally. Or do you think that these small functions should not go
 to the library?

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2357#comment:1>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list