[PVFS2-CVS] commit by pw in pvfs2/src/apps/karma: details.c
CVS commit program
cvs at parl.clemson.edu
Fri Jan 6 10:11:53 EST 2006
Update of /projects/cvsroot/pvfs2/src/apps/karma
In directory parlweb:/tmp/cvs-serv20687/src/apps/karma
Modified Files:
details.c
Log Message:
avoid 64-bit cast warnings
Index: details.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/karma/details.c,v
diff -u -p -u -r1.15 -r1.16
--- details.c 12 Feb 2004 19:28:01 -0000 1.15
+++ details.c 6 Jan 2006 15:11:53 -0000 1.16
@@ -384,8 +384,8 @@ static gint gui_details_float_string_com
gchar *string_a, *string_b;
float a, b;
- gtk_tree_model_get(model, iter_a, (gint) col_id, &string_a, -1);
- gtk_tree_model_get(model, iter_b, (gint) col_id, &string_b, -1);
+ gtk_tree_model_get(model, iter_a, (gint)(unsigned long) col_id, &string_a, -1);
+ gtk_tree_model_get(model, iter_b, (gint)(unsigned long) col_id, &string_b, -1);
a = (float) strtod(string_a, NULL);
b = (float) strtod(string_b, NULL);
@@ -406,8 +406,8 @@ static gint gui_details_text_compare(Gtk
int ret;
gchar *string_a, *string_b;
- gtk_tree_model_get(model, iter_a, (gint) col_id, &string_a, -1);
- gtk_tree_model_get(model, iter_b, (gint) col_id, &string_b, -1);
+ gtk_tree_model_get(model, iter_a, (gint)(unsigned long) col_id, &string_a, -1);
+ gtk_tree_model_get(model, iter_b, (gint)(unsigned long) col_id, &string_b, -1);
/* TODO: use some glib function instead? */
ret = strcmp(string_a, string_b);
More information about the PVFS2-CVS
mailing list