[9ae8f17cfc8ba7fd8fb34b2a194ef965a3b36a40839a46eeab1350e916692ac9/incremental-sort: 1/5] xxx: vector_set_size



commit 1f0ace74549381fc2490718a5549640ee09f7598
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jul 7 15:34:43 2020 +0200

    xxx: vector_set_size

 gtk/gtkvectorimpl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkvectorimpl.c b/gtk/gtkvectorimpl.c
index 6cf583f697..7d4c471bd9 100644
--- a/gtk/gtkvectorimpl.c
+++ b/gtk/gtkvectorimpl.c
@@ -224,7 +224,7 @@ gtk_vector(set_size) (GtkVector *self,
   if (new_size > old_size)
     gtk_vector(splice) (self, old_size, 0, NULL, new_size - old_size);
   else
-    gtk_vector(splice) (self, old_size, old_size - new_size, NULL, 0);
+    gtk_vector(splice) (self, new_size, old_size - new_size, NULL, 0);
 }
 
 G_GNUC_UNUSED static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]