about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/zutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/zutil.c b/Src/Modules/zutil.c
index 6631fc123..d40b0ae4c 100644
--- a/Src/Modules/zutil.c
+++ b/Src/Modules/zutil.c
@@ -155,7 +155,7 @@ setstypat(Style s, char *pat, Patprog prog, char **vals)
 	    tmp = 2;
 	}
     }
-    p->weight = weight + tmp;
+    p->weight = (weight += tmp);
 
     for (qq = NULL, q = s->pats; q && q->weight >= weight;
 	 qq = q, q = q->next);