diff options
author | frosch <frosch@openttd.org> | 2013-01-12 17:20:31 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-01-12 17:20:31 +0000 |
commit | 28f22a46bca8494e7add7fa647f63d5cdbb994cd (patch) | |
tree | fc8a2c4b02c3fcfe23bb4f2976058965fda9ab72 | |
parent | 07ffc90bf4d1afcd5a1a60dd3f4ba5b8e7435cd0 (diff) | |
download | openttd-28f22a46bca8494e7add7fa647f63d5cdbb994cd.tar.xz |
(svn r24909) -Codechange: Remove implicit bool -> integer conversion.
-rw-r--r-- | src/strings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 0973639a4..45e1d5597 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -524,7 +524,7 @@ static int DeterminePluralForm(int64 count, int plural_form) * 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 count, int plural_form) * 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: |