qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Fix warning on 32-bit hosts


From: Kirill A. Shutemov
Subject: [Qemu-devel] [PATCH] Fix warning on 32-bit hosts
Date: Tue, 8 Sep 2009 13:46:42 +0300

  CC    check-qint.o
cc1: warnings being treated as errors
check-qint.c: In function 'qint_from_int64_test':
check-qint.c:46: error: integer constant is too large for 'long' type
make: *** [check-qint.o] Error 1

Signed-off-by: Kirill A. Shutemov <address@hidden>
---
 check-qint.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/check-qint.c b/check-qint.c
index ae5d22f..f5c054e 100644
--- a/check-qint.c
+++ b/check-qint.c
@@ -43,7 +43,7 @@ END_TEST
 START_TEST(qint_from_int64_test)
 {
     QInt *qi;
-    const int64_t value = 0xffffffffffffffff;
+    const int64_t value = 0xffffffffffffffffLL;
 
     qi = qint_from_int(value);
     fail_unless(qi->value == value);
-- 
1.6.4.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]