mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r24909) -Codechange: Remove implicit bool -> integer conversion.
This commit is contained in:
parent
07ffc90bf4
commit
28f22a46bc
@ -524,7 +524,7 @@ static int DeterminePluralForm(int64 count, int plural_form)
|
|||||||
* Danish, Dutch, English, German, Norwegian, Swedish, Estonian, Finnish,
|
* Danish, Dutch, English, German, Norwegian, Swedish, Estonian, Finnish,
|
||||||
* Greek, Hebrew, Italian, Portuguese, Spanish, Esperanto */
|
* Greek, Hebrew, Italian, Portuguese, Spanish, Esperanto */
|
||||||
case 0:
|
case 0:
|
||||||
return n != 1;
|
return n != 1 ? 1 : 0;
|
||||||
|
|
||||||
/* Only one form.
|
/* Only one form.
|
||||||
* Used in:
|
* Used in:
|
||||||
@ -536,7 +536,7 @@ static int DeterminePluralForm(int64 count, int plural_form)
|
|||||||
* Used in:
|
* Used in:
|
||||||
* French, Brazilian Portuguese */
|
* French, Brazilian Portuguese */
|
||||||
case 2:
|
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.
|
/* Three forms: special cases for 0, and numbers ending in 1 except when ending in 11.
|
||||||
* Used in:
|
* Used in:
|
||||||
|
Loading…
Reference in New Issue
Block a user