AMD64 compilation problem: cast from pointer to integer of different size

Sebastian Held sebastian.held at gmx.de
Sat Aug 22 15:00:23 EDT 2009


To compile on AMD64 I need the following patch.
Don't know, if that gets the correct bits...

Sebastian

patch:

Index: /home/sebastian/src/gnucash.trunk/src/backend/sql/gnc-budget-sql.c
===================================================================
--- /home/sebastian/src/gnucash.trunk/src/backend/sql/gnc-budget-sql.c  
(Revision 18268)
+++ /home/sebastian/src/gnucash.trunk/src/backend/sql/gnc-budget-sql.c  
(Arbeitskopie)
@@ -153,7 +153,7 @@

        g_return_if_fail( pObj != NULL );

-       info->period_num = (guint)val;
+       info->period_num = (guint)(gulong)val;
 }

 static gnc_numeric


More information about the gnucash-devel mailing list