fix MSVC int -> bool performance warning

avoid conversion of int to bool, removing Microsoft Visual Studio Express 2013 warnings