Fixed warning about int to bool conversion.