Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/orc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2009-11-20 20:51:27 +0300
committerDavid Schleef <ds@schleef.org>2009-11-20 20:51:27 +0300
commit102c0308dde99fc8451ab1430915dbd7485fc0b1 (patch)
tree25410d11d3800aad3cbc09afb9d0201187bfe35b /orc-test
parent37c0b8ec2f77a64559a847e6833233bff355300d (diff)
test: fix printf format for 64-bit types
Diffstat (limited to 'orc-test')
-rw-r--r--orc-test/orctest.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/orc-test/orctest.c b/orc-test/orctest.c
index 1095547..944959d 100644
--- a/orc-test/orctest.c
+++ b/orc-test/orctest.c
@@ -154,11 +154,7 @@ print_array_val_signed (OrcArray *array, int i, int j)
printf(" %10d", *(int32_t *)ptr);
return *(int32_t *)ptr;
case 8:
-#ifdef HAVE_AMD64
- printf(" %20ld", *(int64_t *)ptr);
-#else
- printf(" %20lld", *(int64_t *)ptr);
-#endif
+ printf(" %20lld", (long long)*(int64_t *)ptr);
return *(int64_t *)ptr;
default:
return -1;
@@ -193,11 +189,7 @@ print_array_val_unsigned (void *array, int size, int i)
case 8:
{
uint64_t *a = array;
-#ifdef HAVE_AMD64
- printf(" %20lu", a[i]);
-#else
- printf(" %20llu", a[i]);
-#endif
+ printf(" %20llu", (long long)a[i]);
return a[i];
}
break;
@@ -234,11 +226,7 @@ print_array_val_hex (void *array, int size, int i)
case 8:
{
uint64_t *a = array;
-#ifdef HAVE_AMD64
- printf(" %20lx", a[i]);
-#else
- printf(" %16llx", a[i]);
-#endif
+ printf(" %16llx", (long long)a[i]);
return a[i];
}
break;