[Gnucash-changes] r13280 - gnucash/trunk/src/gnome-utils - Use GPOINTER_TO_INT to avoid casting pointer to integer of different size.

Chris Shoemaker chris at cvs.gnucash.org
Fri Feb 17 10:03:24 EST 2006


Author: chris
Date: 2006-02-17 10:03:23 -0500 (Fri, 17 Feb 2006)
New Revision: 13280
Trac: http://svn.gnucash.org/trac/changeset/13280

Modified:
   gnucash/trunk/src/gnome-utils/dialog-account.c
Log:
   Use GPOINTER_TO_INT to avoid casting pointer to integer of different size.


Modified: gnucash/trunk/src/gnome-utils/dialog-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-account.c	2006-02-16 06:07:17 UTC (rev 13279)
+++ gnucash/trunk/src/gnome-utils/dialog-account.c	2006-02-17 15:03:23 UTC (rev 13280)
@@ -1147,7 +1147,7 @@
       types = xaccAccountTypesValid () | (1 << aw->type);
   else
       for (list = aw->valid_types; list; list = list->next)
-          types |= (1 << (guint) list->data);
+          types |= (1 << GPOINTER_TO_INT(list->data));
 
   model = gnc_tree_model_account_types_filter_using_mask (types);
 



More information about the gnucash-changes mailing list