summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/src')
-rw-r--r--gettext-tools/src/format-javascript.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gettext-tools/src/format-javascript.c b/gettext-tools/src/format-javascript.c
index c9c3d32..42f2dce 100644
--- a/gettext-tools/src/format-javascript.c
+++ b/gettext-tools/src/format-javascript.c
@@ -381,9 +381,10 @@ format_check (void *msgid_descr, void *msgstr_descr, bool equality,
{
if (spec1->numbered[i].number == spec2->numbered[j].number)
{
- if (!equality
- && (spec1->numbered[i].type == FAT_ANY
- || spec2->numbered[i].type == FAT_ANY))
+ if (!(spec1->numbered[i].type == spec2->numbered[j].type
+ || (!equality
+ && (spec1->numbered[i].type == FAT_ANY
+ || spec2->numbered[i].type == FAT_ANY))))
{
if (error_logger)
error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"),