summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxhe <xw897002528@gmail.com>2017-04-04 18:18:25 +0800
committerxhe <xw897002528@gmail.com>2017-05-06 13:03:23 +0800
commitbc609db0f9d7f35a4967cac0f34590ea5f9ada3c (patch)
tree1b9488a19cb439af98d6fe483f592e5e75fdf886
parentc086a03eaeb095312788e949afa1d22921121764 (diff)
downloadgettext-tiny-bc609db0f9d7f35a4967cac0f34590ea5f9ada3c.tar.gz
small changes:
with plurals allowed <= nplurals, we can not check it accurately(!=). But it's impossible that str > the excepted maximum
-rw-r--r--src/msgfmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msgfmt.c b/src/msgfmt.c
index 6a346ba..48b9f4c 100644
--- a/src/msgfmt.c
+++ b/src/msgfmt.c
@@ -350,7 +350,7 @@ int process(FILE *in, FILE *out) {
if(d.pass == pass_second) {
// start of second pass:
// check that data gathered in first pass is consistent
- if((d.num[pe_msgid] + d.num[pe_plural] * (p->info.nplurals - 1)) != d.num[pe_msgstr]) {
+ if((d.num[pe_msgid] + d.num[pe_plural] * (p->info.nplurals - 1)) < d.num[pe_msgstr]) {
// one should actually abort here,
// but gnu gettext simply writes an empty .mo and returns success.
//abort();