Skip to contentSkip to conversation

Fix warning on 32-bit hosts

PATCH In review Kirill A. Shutemov 2 participants 2 messages Sep 8, 2009 – Sep 9, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix warning on 32-bit hosts

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

---
 check-qint.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
check-qint.c +1 -1
index ae5d22f..f5c054e 100644
@@ -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);
Signature · 1 line
1.6.4.2
#1 lore raw
Quoted 7 lines · On Tue, 8 Sep 2009 13:46:42 +0300 "Kirill A. Shutemov" <[email protected]>…

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

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