diff -urN -Xfreeciv/diff_ignore freeciv/client/gui-gtk/dialogs.c freeciv-64bit/client/gui-gtk/dialogs.c --- freeciv/client/gui-gtk/dialogs.c Wed Oct 2 11:45:51 2002 +++ freeciv-64bit/client/gui-gtk/dialogs.c Mon Oct 7 21:38:50 2002 @@ -1970,8 +1970,8 @@ race_names = NULL; for(i = 0; i < game.playable_nation_count; i++) { - race_names = g_list_append(race_names, - get_nation_by_idx((int)g_list_nth_data(sorted_races_list, i))->name); + race_names = g_list_append(race_names, get_nation_by_idx( + GPOINTER_TO_INT(g_list_nth_data(sorted_races_list, i)))->name); } gtk_combo_set_popdown_strings(GTK_COMBO(races_by_name), race_names); @@ -2136,8 +2136,8 @@ for(i = 0; i < g_list_length(sorted_races_list); i++) { if (strcmp(gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(races_by_name)->entry)), - get_nation_by_idx( - (int)g_list_nth_data(sorted_races_list, i))->name) == 0) { + get_nation_by_idx(GPOINTER_TO_INT( + g_list_nth_data(sorted_races_list, i)))->name) == 0) { if (GTK_WIDGET_SENSITIVE(races_toggles[i])) { gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(races_toggles[i]), TRUE); break; diff -urN -Xfreeciv/diff_ignore freeciv/common/dataio.c freeciv-64bit/common/dataio.c --- freeciv/common/dataio.c Thu Oct 3 12:42:02 2002 +++ freeciv-64bit/common/dataio.c Mon Oct 7 22:01:23 2002 @@ -343,7 +343,7 @@ size_t max = (unsigned short)(-1); if (bits > max) { - freelog(LOG_ERROR, "Bit string too long: %d bits.", bits); + freelog(LOG_ERROR, "Bit string too long: %lu bits.", (unsigned long)bits); assert(FALSE); bits = max; } diff -urN -Xfreeciv/diff_ignore freeciv/common/packets.c freeciv-64bit/common/packets.c --- freeciv/common/packets.c Mon Oct 7 21:31:40 2002 +++ freeciv-64bit/common/packets.c Mon Oct 7 21:59:36 2002 @@ -506,8 +506,8 @@ /* This may be ok, eg a packet from a newer version with extra info * which we should just ignore */ freelog(LOG_VERBOSE, - "received long packet (type %d, len %d, rem %d)%s", type, len, - rem, from); + "received long packet (type %d, len %d, rem %lu)%s", type, + len, (unsigned long)rem, from); } } }