[ghex] Fix "statement with no effect" warning



commit 5d3734f07743e46072d93c22897713931cb08a4e
Author: Andre Klapper <a9016009 gmx de>
Date:   Fri Mar 5 11:53:53 2010 +0100

    Fix "statement with no effect" warning

 src/gtkhex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gtkhex.c b/src/gtkhex.c
index 1e7fde3..1aec82a 100644
--- a/src/gtkhex.c
+++ b/src/gtkhex.c
@@ -2134,7 +2134,7 @@ void gtk_hex_set_cursor(GtkHex *gh, gint index) {
 		if(!gh->insert && index == gh->document->file_size)
 			index--;
 
-		index == MAX(index, 0);
+		index = MAX(index, 0);
 
 		hide_cursor(gh);
 		



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