[gvar] Minor error-handling

This commit is contained in:
Behdad Esfahbod committed 2023-04-26 15:58:55 -06:00
1 parent 57faabb78e
commit 2a3bf5a542
1 file changed
+3 -1
+3 -1
View File
@@ -398,10 +398,12 @@ struct gvar
if (!apply_to_all)
{
if (!end_points)
{
for (unsigned i = 0; i < points.length; ++i)
if (points.arrayZ[i].is_end_point)
end_points.push (i);
if (unlikely (end_points.in_error ())) return false;
if (unlikely (end_points.in_error ())) return false;
}
unsigned start_point = 0;
for (unsigned end_point : end_points)