[gnome-builder] diagnostic: make fatal highest priority when sorting
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] diagnostic: make fatal highest priority when sorting
- Date: Sun, 16 Oct 2016 00:42:09 +0000 (UTC)
commit 3530926ec9e04156b29ac83877b18afb91534c5d
Author: Christian Hergert <chergert redhat com>
Date: Sat Oct 15 17:39:54 2016 -0700
diagnostic: make fatal highest priority when sorting
libide/diagnostics/ide-diagnostic.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libide/diagnostics/ide-diagnostic.c b/libide/diagnostics/ide-diagnostic.c
index 8be7f71..015b26c 100644
--- a/libide/diagnostics/ide-diagnostic.c
+++ b/libide/diagnostics/ide-diagnostic.c
@@ -332,7 +332,8 @@ ide_diagnostic_compare (const IdeDiagnostic *a,
g_assert (a != NULL);
g_assert (b != NULL);
- if (0 != (ret = (gint)a->severity - (gint)b->severity))
+ /* Severity is 0..N where N is more important. So reverse comparator. */
+ if (0 != (ret = (gint)b->severity - (gint)a->severity))
return ret;
if (a->location && b->location)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]