aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2007-04-22 22:23:19 +0000
committerBill Meier <wmeier@newsguy.com>2007-04-22 22:23:19 +0000
commitcb92dd701915c46ddb078c39f565efb55cdd8990 (patch)
tree3edebbb6c7bd7d7b9052499a3d20cf706f7f973a
parentda8eba288dfd5702af375b0a693f63fae04b5302 (diff)
Another fix to allow gtk1 to compile w/o warnings....
svn path=/trunk/; revision=21512
-rw-r--r--gtk/graph_analysis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/graph_analysis.c b/gtk/graph_analysis.c
index f362bb9fa2..83fe00f4f3 100644
--- a/gtk/graph_analysis.c
+++ b/gtk/graph_analysis.c
@@ -267,7 +267,8 @@ static void overwrite (GString *gstr, char *text_to_insert, guint32 p1, guint32
len = strlen(text_to_insert);
}
- if (pos > gstr->len)
+ /* ouch this is ugly but gtk1 needs it */
+ if ((guint32)pos > (guint32)gstr->len)
pos = gstr->len;
/* ouch this is ugly but gtk1 needs it */