At least on some LP64 platforms (such as OpenBSD 4.2 on x86-64),

PRI[dux]64 use "ll", but gint64 and guint64 are "long" and "unsigned
long", not "long long" or "unsigned long long", and the compiler warns
about using "%ll[doux]" with "long" or "unsigned long".  Use
G_GINT64_MODIFIER instead.

svn path=/trunk/; revision=23760
This commit is contained in:
Guy Harris 2007-12-05 09:05:52 +00:00
parent d55f6955d6
commit 9aa28e3176
1 changed files with 2 additions and 2 deletions

View File

@ -321,7 +321,7 @@ integer64_repr_len(fvalue_t *fv _U_, ftrepr_t rtype _U_)
static void
integer64_to_repr(fvalue_t *fv, ftrepr_t rtype _U_, char *buf)
{
sprintf(buf, "%" PRId64, fv->value.integer64);
sprintf(buf, "%" G_GINT64_MODIFIER "d", fv->value.integer64);
}
static int
@ -333,7 +333,7 @@ uinteger64_repr_len(fvalue_t *fv _U_, ftrepr_t rtype _U_)
static void
uinteger64_to_repr(fvalue_t *fv, ftrepr_t rtype _U_, char *buf)
{
sprintf(buf, "%" PRIu64, fv->value.integer64);
sprintf(buf, "%" G_GINT64_MODIFIER "u", fv->value.integer64);
}
static gboolean