[F] Fix compilation error

This commit is contained in:
seleznevae 2020-01-19 13:50:00 +03:00
parent e644f0a504
commit 4e922a7eca
2 changed files with 6 additions and 8 deletions

View File

@ -2841,7 +2841,7 @@ int ft_delete_range(ft_table_t *table,
row = VECTOR_AT(table->rows, i, f_row_t *); row = VECTOR_AT(table->rows, i, f_row_t *);
status = ft_row_delete_range(row, top_left_col, bottom_right_col); status = ft_row_delete_range(row, top_left_col, bottom_right_col);
if (FT_IS_ERROR(status)) if (FT_IS_ERROR(status))
goto clear; return status;
++i; ++i;
} }
@ -2856,12 +2856,11 @@ int ft_delete_range(ft_table_t *table,
destroy_row(row); destroy_row(row);
status = vector_erase(table->rows, i); status = vector_erase(table->rows, i);
if (FT_IS_ERROR(status)) if (FT_IS_ERROR(status))
goto clear; return status;
} }
} }
clear: return FT_SUCCESS;
return status;
} }

View File

@ -261,7 +261,7 @@ int ft_delete_range(ft_table_t *table,
row = VECTOR_AT(table->rows, i, f_row_t *); row = VECTOR_AT(table->rows, i, f_row_t *);
status = ft_row_delete_range(row, top_left_col, bottom_right_col); status = ft_row_delete_range(row, top_left_col, bottom_right_col);
if (FT_IS_ERROR(status)) if (FT_IS_ERROR(status))
goto clear; return status;
++i; ++i;
} }
@ -276,12 +276,11 @@ int ft_delete_range(ft_table_t *table,
destroy_row(row); destroy_row(row);
status = vector_erase(table->rows, i); status = vector_erase(table->rows, i);
if (FT_IS_ERROR(status)) if (FT_IS_ERROR(status))
goto clear; return status;
} }
} }
clear: return FT_SUCCESS;
return status;
} }