From 5c7cf70e022b1bc1334699e4f437394d48526e20 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 21 Apr 2011 08:05:38 +0000 Subject: [PATCH] * Fix a compiler warning when making 64-bit binaries. --- tagutils/tagutils-asf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tagutils/tagutils-asf.c b/tagutils/tagutils-asf.c index b6ba0d7..fcb62f0 100644 --- a/tagutils/tagutils-asf.c +++ b/tagutils/tagutils-asf.c @@ -280,10 +280,10 @@ _asf_load_string(FILE *fp, int type, int size, char *buf, int len) case ASF_VT_QWORD: if(size >= 8) { -#if __WORDSIZE == 64 - i = snprintf(buf, len, "%ld", le64_to_cpu(*(__s64*)&data[0])); -#else wd64 = (__s64 *) &data[0]; +#if __WORDSIZE == 64 + i = snprintf(buf, len, "%ld", le64_to_cpu(*wd64)); +#else i = snprintf(buf, len, "%lld", le64_to_cpu(*wd64)); #endif }