gnucash gentoo-amd64

Andreas Köhler andi5.py at gmx.net
Fri Feb 17 02:57:33 EST 2006


Hi,

On Friday, 17 Feb 2006, 04:35 CET, Chris Lyttle wrote:
> Derek,
> 
> r13279 on amd64
> 
> 
> dialog-account.c  -fPIC -DPIC -o .libs/dialog-account.o
> dialog-account.c: In function `gnc_account_type_view_create':
> dialog-account.c:1150: warning: cast from pointer to integer of
> different size
> make[5]: *** [dialog-account.lo] Error 1
> make[5]: Leaving directory
> `/home/chris/cvs/gnucash-test/src/gnome-utils'
> make[4]: *** [all-recursive] Error 1

Blame me. Does attached patch solve that issue? Ergo always convert
to and from pointers with these macros? I guess so.

-- andi5


PS: If you want foster my programming skills, simply send me a brand
    new PC with AMD64 inside. Thanks! ;-)
-------------- next part --------------
Index: src/gnome-utils/dialog-account.c
===================================================================
--- src/gnome-utils/dialog-account.c	(revision 13279)
+++ src/gnome-utils/dialog-account.c	(working copy)
@@ -1144,10 +1144,10 @@
   }
 
   if (aw->valid_types == NULL)
-      types = xaccAccountTypesValid () | (1 << aw->type);
+    types = xaccAccountTypesValid () | (1 << aw->type);
   else
-      for (list = aw->valid_types; list; list = list->next)
-          types |= (1 << (guint) list->data);
+    for (list = aw->valid_types; list; list = list->next)
+      types |= (1 << GPOINTER_TO_INT (list->data));
 
   model = gnc_tree_model_account_types_filter_using_mask (types);
 


More information about the gnucash-devel mailing list