Opened 12 years ago

Last modified 8 years ago

#1785 new defect

r.param.scale module source code error ?

Reported by: jprigol Owned by: grass-dev@…
Priority: normal Milestone: 6.4.6
Component: Raster Version: svn-releasebranch64
Keywords: r.param.scale, feature.c Cc:
CPU: Unspecified Platform: Unspecified

Description (last modified by neteler)


I've been looking trhough r.param.scale source code. The point is that I was wondering if there was an error in file

The last "else if... (line 103)" includes two simultaneous conditions that should (?) have opposite comparison operations (in addition, it never will take place because the root "if" has the same condition), i.e.

"else if (minic < curve_tol && minic > -curve_tol) {"

Then, final "return (FLAT) (line 108)" will be useless (?).

Kind regards, Juan

-- Atentamente, Juan P. Rigol-Sánchez Recursos Hídricos y Geología Ambiental Dpto. Hidrogeología y Química Analítica Universidad de Almería - España (Spain, EU)

Change History (2)

comment:1 by neteler, 10 years ago

Description: modified (diff)
Version: unspecifiedsvn-releasebranch64

comment:2 by neteler, 8 years ago

Note: See TracTickets for help on using tickets.