Changeset - r19953:b132b7dde65f
[Not reviewed]
master
0 1 0
frosch - 11 years ago 2013-01-12 17:20:31
frosch@openttd.org
(svn r24909) -Codechange: Remove implicit bool -> integer conversion.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/strings.cpp
Show inline comments
 
@@ -524,7 +524,7 @@ static int DeterminePluralForm(int64 cou
 
		 *   Danish, Dutch, English, German, Norwegian, Swedish, Estonian, Finnish,
 
		 *   Greek, Hebrew, Italian, Portuguese, Spanish, Esperanto */
 
		case 0:
 
			return n != 1;
 
			return n != 1 ? 1 : 0;
 

	
 
		/* Only one form.
 
		 * Used in:
 
@@ -536,7 +536,7 @@ static int DeterminePluralForm(int64 cou
 
		 * Used in:
 
		 *   French, Brazilian Portuguese */
 
		case 2:
 
			return n > 1;
 
			return n > 1 ? 1 : 0;
 

	
 
		/* Three forms: special cases for 0, and numbers ending in 1 except when ending in 11.
 
		 * Used in:
0 comments (0 inline, 0 general)