* src/engine/QueryCore.c:

* src/engine/guid.c:
	* src/engine/kvp-util.c:
	  Fixes for 64-bit architectures.  Fixes bug #113231.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/1.8@8347 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldreleases/1.8
Derek Atkins 23 years ago
parent ae0b094499
commit 6fda55f2d5

@ -15,6 +15,11 @@
* src/gnome-utils/gw-gnome-utils-spec.scm: wrap the new print-session
apis.
* src/engine/QueryCore.c:
* src/engine/guid.c:
* src/engine/kvp-util.c:
Fixes for 64-bit architectures. Fixes bug #113231.
2003-05-18 Derek Atkins <derek@ihtfp.com>
* src/engine/gnc-lot.[ch]: add LOT_IS_CLOSED and LOT_BALANCE

@ -669,7 +669,7 @@ static char * int64_to_string (gpointer object, QueryAccess get)
{
gint64 num = ((query_int64_getter)get)(object);
return g_strdup_printf ("%lld", num);
return g_strdup_printf (GNC_SCANF_LLD, num);
}
/* QUERYCORE_DOUBLE */

@ -147,7 +147,8 @@ init_from_file(const char *filename, size_t max_size)
file_bytes = init_from_stream(fp, max_size);
PINFO ("guid_init got %u bytes from %s", file_bytes, filename);
PINFO ("guid_init got %llu bytes from %s", (unsigned long long int) file_bytes,
filename);
total += file_bytes;
@ -340,11 +341,12 @@ guid_init(void)
/* time in secs and clock ticks */
bytes += init_from_time();
PINFO ("got %u bytes", bytes);
PINFO ("got %llu bytes", (unsigned long long int) bytes);
if (bytes < THRESHOLD)
PWARN("only got %u bytes.\n"
"The identifiers might not be very random.\n", bytes);
PWARN("only got %llu bytes.\n"
"The identifiers might not be very random.\n",
(unsigned long long int)bytes);
guid_initialized = TRUE;
}

@ -25,6 +25,7 @@
#include <glib.h>
#include <stdio.h>
#include "gnc-engine-util.h"
#include "kvp_frame.h"
#include "kvp-util-p.h"
@ -64,7 +65,7 @@ gnc_kvp_gemini (kvp_frame *kvp_root, const GUID *acct_guid,
/* OK, now create subdirectory and put the actual data */
--ncopies;
sprintf (buff, "%lld", ncopies);
sprintf (buff, GNC_SCANF_LLD, (long long int) ncopies);
cwd = kvp_frame_new();
kvp_frame_set_slot_nc(pwd, buff, kvp_value_new_frame_nc(cwd));

Loading…
Cancel
Save