[gtk+] Remove a pointless comparison
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove a pointless comparison
- Date: Sun, 22 Mar 2015 19:22:28 +0000 (UTC)
commit fb573e58f12ebc26cf106f85aae4315e30f5078d
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]