diff options
author | xhe <xw897002528@gmail.com> | 2017-04-04 18:18:25 +0800 |
---|---|---|
committer | xhe <xw897002528@gmail.com> | 2017-05-06 13:03:23 +0800 |
commit | bc609db0f9d7f35a4967cac0f34590ea5f9ada3c (patch) | |
tree | 1b9488a19cb439af98d6fe483f592e5e75fdf886 | |
parent | c086a03eaeb095312788e949afa1d22921121764 (diff) | |
download | gettext-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.c | 2 |
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(); |