From a27cc1bd15fe8b821ce8d9246d86e30a3ed57793 Mon Sep 17 00:00:00 2001 From: azidar Date: Tue, 18 Aug 2015 16:32:26 -0700 Subject: Fixed bug in MinusWidth where it was adding instead of subtracting widths --- src/main/stanza/passes.stanza | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/stanza/passes.stanza b/src/main/stanza/passes.stanza index 9d2b1281..e9e9c8f0 100644 --- a/src/main/stanza/passes.stanza +++ b/src/main/stanza/passes.stanza @@ -1826,7 +1826,7 @@ defn solve-constraints (l:List) -> HashTable : (w1,w2) : w (w:MinusWidth) : match(arg1(w),arg2(w)) : - (w1:IntWidth,w2:IntWidth) : IntWidth(width(w1) + width(w2)) + (w1:IntWidth,w2:IntWidth) : IntWidth(width(w1) - width(w2)) (w1:LongWidth,w2:IntWidth) : LongWidth(minus(width(w1),to-long $ width(w2))) (w1:IntWidth,w2:LongWidth) : LongWidth(minus(to-long $ width(w1), width(w2))) (w1:LongWidth,w2:LongWidth) : LongWidth(minus(width(w1),width(w2))) -- cgit v1.2.3