#700 gamessinputdata.h line 518

v_1.2.x
open
nobody
None
5
2013-11-28
2013-11-28
Andrei
No

libavogadro\src\extensions\quantuminput\gamessinputdata.h line 518 :

inline short SetGuess(short NewGuess) {if ((NewGuess<0)&&(NewGuess>5)) return -1; GuessType = NewGuess; return GetGuess();};

Logical conjunction always evaluates to false: NewGuess < 0 && NewGuess > 5.

May be it bug.

Snapshot avogadro-code-bbf9a0dcc3448ca7d604ede03108a7dfc8fcef32.

I use cppcheck. Thanks.

Discussion


Anonymous


Cancel   Add attachments