mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix bad code in assert
This commit is contained in:
@@ -67,7 +67,7 @@ Type *type_infer_len_from_actual_type(Type *to_infer, Type *actual_type)
|
||||
// Handle int[*]! a = { ... } by stripping the optional.
|
||||
bool is_optional = type_is_optional(to_infer);
|
||||
|
||||
assert(is_optional || !type_is_optional(actual_type) && "int[*] x = { may_fail } should have been caught.");
|
||||
assert((is_optional || !type_is_optional(actual_type)) && "int[*] x = { may_fail } should have been caught.");
|
||||
|
||||
// Strip the optional
|
||||
if (is_optional) to_infer = to_infer->optional;
|
||||
|
||||
Reference in New Issue
Block a user