aboutsummaryrefslogtreecommitdiff
path: root/src/main/stanza/primop.stanza
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/stanza/primop.stanza')
-rw-r--r--src/main/stanza/primop.stanza2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/stanza/primop.stanza b/src/main/stanza/primop.stanza
index 7abfa94e..0e343d74 100644
--- a/src/main/stanza/primop.stanza
+++ b/src/main/stanza/primop.stanza
@@ -123,7 +123,7 @@ public defn primop-gen-constraints (e:DoPrim,v:Vector<WGeq>) -> Type :
BIT-XOR-REDUCE-OP : all-max()
CONCAT-OP : PlusWidth(width!(args(e)[0]),width!(args(e)[1]))
BIT-SELECT-OP : IntWidth(1)
- BITS-SELECT-OP : IntWidth(consts(e)[0] - consts(e)[1])
+ BITS-SELECT-OP : IntWidth(consts(e)[0] - consts(e)[1] + 1)
match(type(e)) :
(t:UIntType) : UIntType(w*)