[gnome-builder/wip/libide] libide: add unlikely
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: add unlikely
- Date: Mon, 16 Mar 2015 09:40:31 +0000 (UTC)
commit 720c4451f9294cbcaece17c4e174c89f0126dc2c
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]