Don't compare a boolean to an integer

This avoids a warning when building with MSVC.