#9 Warning in VS 2010 (version 7.1.0)

closed-fixed
nobody
None
5
2011-03-03
2011-03-03
No

I'm getting warning 4800 - forcing value to 'true' or 'false' (performance warning) - on several lines:
libjson.cpp 221, 266
jsonworker.cpp 172
jsonchildren.cpp 76
jsonnode.cpp 353, 354, 429

Discussion

  • Jonathan Wallace

    • status: open --> closed
     
  • Jonathan Wallace

    I've reviewed each of these lines, they are not problems. However I have changed them to use explicit checks agains zero and static casts to bool.

     
  • Jonathan Wallace

    • status: closed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks