Patchwork Fix warning on 32-bit hosts

login
register
mail settings
Submitter Kirill A. Shutemov
Date Sept. 8, 2009, 10:46 a.m.
Message ID <1252406802-29289-1-git-send-email-kirill@shutemov.name>
Download mbox | patch
Permalink /patch/33117/
State Superseded
Headers show

Comments

Kirill A. Shutemov - Sept. 8, 2009, 10:46 a.m.
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 <kirill@shutemov.name>
---
 check-qint.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Luiz Capitulino - Sept. 9, 2009, 1:42 p.m.
On Tue,  8 Sep 2009 13:46:42 +0300
"Kirill A. Shutemov" <kirill@shutemov.name> wrote:

>   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 <kirill@shutemov.name>

 We already have a better fix on the list, but thanks anyway.

Patch

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);