From 4e922a7ecab468562beb9a058b16f6adfd1d325c Mon Sep 17 00:00:00 2001 From: seleznevae Date: Sun, 19 Jan 2020 13:50:00 +0300 Subject: [PATCH] [F] Fix compilation error --- lib/fort.c | 7 +++---- src/fort_impl.c | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/fort.c b/lib/fort.c index d525227..6e34a69 100644 --- a/lib/fort.c +++ b/lib/fort.c @@ -2841,7 +2841,7 @@ int ft_delete_range(ft_table_t *table, row = VECTOR_AT(table->rows, i, f_row_t *); status = ft_row_delete_range(row, top_left_col, bottom_right_col); if (FT_IS_ERROR(status)) - goto clear; + return status; ++i; } @@ -2856,12 +2856,11 @@ int ft_delete_range(ft_table_t *table, destroy_row(row); status = vector_erase(table->rows, i); if (FT_IS_ERROR(status)) - goto clear; + return status; } } -clear: - return status; + return FT_SUCCESS; } diff --git a/src/fort_impl.c b/src/fort_impl.c index f493f6b..8590c8f 100644 --- a/src/fort_impl.c +++ b/src/fort_impl.c @@ -261,7 +261,7 @@ int ft_delete_range(ft_table_t *table, row = VECTOR_AT(table->rows, i, f_row_t *); status = ft_row_delete_range(row, top_left_col, bottom_right_col); if (FT_IS_ERROR(status)) - goto clear; + return status; ++i; } @@ -276,12 +276,11 @@ int ft_delete_range(ft_table_t *table, destroy_row(row); status = vector_erase(table->rows, i); if (FT_IS_ERROR(status)) - goto clear; + return status; } } -clear: - return status; + return FT_SUCCESS; }