summaryrefslogtreecommitdiff
path: root/src/util/array_store_all.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/array_store_all.h')
-rw-r--r--src/util/array_store_all.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/array_store_all.h b/src/util/array_store_all.h
index bccefdd58..b1d624266 100644
--- a/src/util/array_store_all.h
+++ b/src/util/array_store_all.h
@@ -46,7 +46,7 @@ public:
// because this check is done in production builds too
CheckArgument(type.isArray(), type, "array store-all constants can only be created for array types, not `%s'", type.toString().c_str());
- CheckArgument(expr.getType().isSubtypeOf(type.getConstituentType()), expr, "expr type `%s' does not match constituent type of array type `%s'", expr.getType().toString().c_str(), type.toString().c_str());
+ CheckArgument(expr.getType().isComparableTo(type.getConstituentType()), expr, "expr type `%s' does not match constituent type of array type `%s'", expr.getType().toString().c_str(), type.toString().c_str());
CheckArgument(expr.isConst(), expr, "ArrayStoreAll requires a constant expression");
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback