summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mi/flatten.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mi/flatten.c b/mi/flatten.c
index cc0a6a8..ace387f 100644
--- a/mi/flatten.c
+++ b/mi/flatten.c
@@ -158,8 +158,9 @@ static Node *seqlen(Flattenctx *s, Node *n, Type *ty)
} else if (exprtype(n)->type == Tyslice) {
r = mkexpr(n->loc, Osllen, rval(s, n), NULL);
r->expr.type = ty;
+ } else {
+ die("invalid seq type for len");
}
- assert(r != NULL);
return r;
}