[gnome-builder] libide: add unlikely



commit b23684d418a6f111c1ba5aed6a1d88489fb5c9b6
Author: Christian Hergert <christian hergert me>
Date:   Mon Mar 16 02:40:19 2015 -0700

    libide: add unlikely

 libide/clang/ide-clang-completion-item.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/clang/ide-clang-completion-item.c b/libide/clang/ide-clang-completion-item.c
index ca65665..962970d 100644
--- a/libide/clang/ide-clang-completion-item.c
+++ b/libide/clang/ide-clang-completion-item.c
@@ -392,7 +392,7 @@ ide_clang_completion_item_get_typed_text (IdeClangCompletionItem *self)
    * Determine the index of the typed text. Each completion result should have
    * exaction one of these.
    */
-  if (self->typed_text_index == -1)
+  if (G_UNLIKELY (self->typed_text_index == -1))
     {
       guint num_chunks;
       guint i;


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