WaE: implicit conversion (IntegralCast) from bool to 'int'

These two functions should surely be of type bool.