[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gsl] gsl-1.15: 2 * bad if test ?
From: |
David Binderman |
Subject: |
[Bug-gsl] gsl-1.15: 2 * bad if test ? |
Date: |
Mon, 3 Jun 2013 18:01:10 +0000 |
Hello there,
I just ran the static analyser "cppcheck" over the source code
of gsl-1.15. Amongst other things, it said
[gegenbauer.c:110]: (warning) Logical disjunction always evaluates to true: x>=
-1.0 || x <= 1.0.
[driver.c:114]: (warning) Logical disjunction always evaluates to true: hmin>=
0.0 || hmin < 0.0.
Suggest replace || with &&
Regards
David Binderman
- [Bug-gsl] gsl-1.15: 2 * bad if test ?,
David Binderman <=