Menu

#30 [build/src/watools.cpp:339]: possible bad if expression ?

v1.0 (example)
open
nobody
None
5
2014-04-13
2014-04-13
dcb
No

[build/src/watools.cpp:339]: (warning) Comparison of a boolean expression with an integer other than 0 or 1.

Source code is

if (!iw_socket<0)

Suggest new code

if (iw_socket >= 0)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB