[Gnucash-changes] more x86_64 fixes.

Derek Atkins warlord at cvs.gnucash.org
Tue Sep 28 18:55:22 EDT 2004


Log Message:
-----------
more x86_64 fixes.

	* src/backend/file/io-gncbin-r.c: Fixes for x86_64

Tags:
----
gnucash-1-8-branch

Modified Files:
--------------
    gnucash:
        ChangeLog
    gnucash/src/backend/file:
        io-gncbin-r.c

Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1461.2.354
retrieving revision 1.1461.2.355
diff -LChangeLog -LChangeLog -u -r1.1461.2.354 -r1.1461.2.355
--- ChangeLog
+++ ChangeLog
@@ -1,6 +1,7 @@
 2004-09-28  Derek Atkins  <derek at ihtfp.com>
 
 	* src/engine/QueryCore.c: Fix for x86_64.
+	* src/backend/file/io-gncbin-r.c: Fixes for x86_64
 
 2004-09-25  Christian Stimming  <stimming at tuhh.de>
 
Index: io-gncbin-r.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/backend/file/io-gncbin-r.c,v
retrieving revision 1.14.2.2
retrieving revision 1.14.2.3
diff -Lsrc/backend/file/io-gncbin-r.c -Lsrc/backend/file/io-gncbin-r.c -u -r1.14.2.2 -r1.14.2.3
--- src/backend/file/io-gncbin-r.c
+++ src/backend/file/io-gncbin-r.c
@@ -827,12 +827,12 @@
 
    /* first, see if we've already created the account */
    acc = (Account *) g_hash_table_lookup(ids_to_finished_accounts,
-                                         (gconstpointer) acc_id);
+                                         GINT_TO_POINTER(acc_id));
    if (acc) return acc;
 
    /* next, see if its an unclaimed account */
    acc = (Account *) g_hash_table_lookup(ids_to_unfinished_accounts,
-                                         (gconstpointer) acc_id);
+                                         GINT_TO_POINTER(acc_id));
    if (acc) return acc;
 
    /* if neither, then it does not yet exist.  Create it.
@@ -840,7 +840,7 @@
    acc = xaccMallocAccount (book);
    xaccAccountBeginEdit(acc);
    g_hash_table_insert(ids_to_unfinished_accounts,
-                       (gpointer) acc_id,
+                       GINT_TO_POINTER(acc_id),
                        (gpointer) acc);
    return acc;
 }


More information about the gnucash-changes mailing list