Fix unnecessary bool-double conversion.