[gtk+/gtk-3-16] Remove a pointless comparison
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-16] Remove a pointless comparison
- Date: Mon, 23 Mar 2015 03:15:32 +0000 (UTC)
commit 28fde2f32006dc6a498f7675df643a1fe2ef3691
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 22 15:16:14 2015 -0400
Remove a pointless comparison
Comparing an unsigned value against < 0 is not going to succeed.
Pointed out by clang.
gtk/gtkprintoperation.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c
index 1f45c4f..057430b 100644
--- a/gtk/gtkprintoperation.c
+++ b/gtk/gtkprintoperation.c
@@ -1785,7 +1785,7 @@ _gtk_print_operation_set_status (GtkPrintOperation *op,
NC_("print operation status", "Finished with error")
};
- if (status < 0 || status > GTK_PRINT_STATUS_FINISHED_ABORTED)
+ if (status > GTK_PRINT_STATUS_FINISHED_ABORTED)
status = GTK_PRINT_STATUS_FINISHED_ABORTED;
if (string == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]