aboutsummaryrefslogtreecommitdiffstats
path: root/console/showqt.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 04:37:08 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 05:30:44 (GMT)
commitb9acc8d7f7a6b9d78da222432eb95c9823f80886 (patch)
tree1f8e39e0c7d4cc73cc770f51b2b4a511a1c5dc92 /console/showqt.c
parent97eaca594a2adbfc3dfc5754ba162aee4144db47 (diff)
Properly represent long constants
This is a cleanup patch that will shutup some gcc4 build troubles. This patch were imported from Fedora 12 set of patches for xawtv. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'console/showqt.c')
-rw-r--r--console/showqt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/console/showqt.c b/console/showqt.c
index 4221e81..efe67aa 100644
--- a/console/showqt.c
+++ b/console/showqt.c
@@ -25,14 +25,14 @@
(((uint32_t)x<<8) & (uint32_t)0x00ff0000) |\
(((uint32_t)x<<24) & (uint32_t)0xff000000))
-# define SWAP8(x) ((((uint64_t)x>>56) & (uint64_t)0x00000000000000ff) |\
- (((uint64_t)x>>40) & (uint64_t)0x000000000000ff00) |\
- (((uint64_t)x>>24) & (uint64_t)0x0000000000ff0000) |\
- (((uint64_t)x>> 8) & (uint64_t)0x00000000ff000000) |\
- (((uint64_t)x<< 8) & (uint64_t)0x000000ff00000000) |\
- (((uint64_t)x<<24) & (uint64_t)0x0000ff0000000000) |\
- (((uint64_t)x<<40) & (uint64_t)0x00ff000000000000) |\
- (((uint64_t)x<<56) & (uint64_t)0xff00000000000000))
+# define SWAP8(x) ((((uint64_t)x>>56) & (uint64_t)0x00000000000000ffULL) |\
+ (((uint64_t)x>>40) & (uint64_t)0x000000000000ff00ULL) |\
+ (((uint64_t)x>>24) & (uint64_t)0x0000000000ff0000ULL) |\
+ (((uint64_t)x>> 8) & (uint64_t)0x00000000ff000000ULL) |\
+ (((uint64_t)x<< 8) & (uint64_t)0x000000ff00000000ULL) |\
+ (((uint64_t)x<<24) & (uint64_t)0x0000ff0000000000ULL) |\
+ (((uint64_t)x<<40) & (uint64_t)0x00ff000000000000ULL) |\
+ (((uint64_t)x<<56) & (uint64_t)0xff00000000000000ULL))
#else
# define SWAP2(a) (a)
# define SWAP4(a) (a)

Privacy Policy