aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-12-05 09:05:52 +0000
committerGuy Harris <guy@alum.mit.edu>2007-12-05 09:05:52 +0000
commit9aa28e317652dc4d887044b1b4450819770c085f (patch)
tree490136b391fc3569b41d07b31ebfeb0550e404bb /epan/ftypes
parentd55f6955d65ab4052c52b8245835a0555ec1c7a4 (diff)
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
Diffstat (limited to 'epan/ftypes')
-rw-r--r--epan/ftypes/ftype-integer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/ftypes/ftype-integer.c b/epan/ftypes/ftype-integer.c
index d00f3097ed..bd3cfd5943 100644
--- a/epan/ftypes/ftype-integer.c
+++ b/epan/ftypes/ftype-integer.c
@@ -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