mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
fix: incorrect index in TypeEqual for ConstraintType (#2754)
Just a typo. Closes #2727
This commit is contained in:
@@ -832,7 +832,7 @@ auto TypeEqual(Nonnull<const Value*> t1, Nonnull<const Value*> t2,
|
||||
return false;
|
||||
}
|
||||
for (size_t j = 0; j < equality1.values.size(); ++j) {
|
||||
if (!ValueEqual(equality1.values[i], equality2.values[i],
|
||||
if (!ValueEqual(equality1.values[j], equality2.values[j],
|
||||
equality_ctx)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user