get rid of windows warning:

warning C4800: forcing value to bool 'true' or 'false' (performance warning)